This endpoint allows you to modify certain properties of an existing collection, such as its description or configuration settings. The collection name cannot be changed once it’s created.
API endpoint
PATCH /v1/collections/{collection_name}
Path parameters
Parameter
Type
Required
Description
collection_name
string
Yes
Name of the collection to update
Request body
The request body should contain a JSON object with the properties you want to update:
Parameter
Type
Required
Description
description
string
No
New description for the collection
Example request body:
{
"description":"Updated collection of premium electronics products"
}
Response
A successful update returns a 200 OK status code and a JSON response containing the updated collection:
{
"name":"products",
"description":"Updated collection of premium electronics products",
The GET endpoint retrieves detailed collection information including metadata schema and object counts by using a unique collection name while returning a JSON response with appropriate status codes and error handling.
Collections in Tallyfy Answers are created through a POST API endpoint that requires a unique name and optional description while automatically detecting data types and supporting various naming conventions with proper error handling.
The DELETE endpoint permanently removes collections and their objects through a straightforward API call while offering best practices and alternatives to mitigate risks of irreversible data loss.
Collections in Tallyfy Answers are organizational structures that function like database tables to group similar objects together with features for dynamic schema detection efficient organization searchability scalability and comprehensive management operations.