Collections
Update a collection
Renames a collection, moves it to another parent or changes its order.
collections:writecollections:write- 120/min
- Server annotation: Idempotent
Result
generated from the schema
entityType is not there: changing it is not supported. A parentCollectionId that does not exist or belongs to another account, that is the collection itself or one of its subcollections, or that groups a different type of resource responds 400 validation_error with errors[0]. on that field; the system collections cannot be modified (409 conflict). In both cases nothing is written. Returns the confirmation, not the record, because this resource does not publish a read.
Arguments
Collection identifier.
Limits: min length 1
Collection name.
Limits: min length 1
Collection description.
New parent collection; null moves it to the top level.
Collection icon.
Display order among its siblings.
Idempotency key chosen by the client (a UUID is recommended). Repeating the same key with the same arguments within 24 h returns the stored response without executing again; with different arguments it responds 422. It is the safe way to retry after a network failure.
Limits: min length 1, max length 255
Result
On success the result carries structuredContent with data and meta. These are the attributes of data.
Show the attributes of data
Identifier of the updated collection.
true when the change was applied.
An error is a result with isError: true and the problem in content[0].; there is no structuredContent. See Errors.
The same operation by REST
This tool runs PATCH /api/v1/collections/{collectionId}.
Related pages
Link to this section: Related pagesCollections
Update a collection
Renames a collection, moves it to another parent or changes its order.
Guides
Safe writes
An assistant that can write can also write the wrong thing. Decide which tools need a person, retry without duplicating, and know what a write sets in motion.
Guides
Errors
A tool error is a result with
isError: trueand the problem in the first text block. Branch on itscode.
Was this page helpful?