Collections
Create a collection
Creates a node of the tree the catalog is organized by.
collections:writeResult
generated from the schema
entityType decides what the tree is of (items by default) and CANNOT be changed afterwards. Omit parentCollectionId for a top-level collection.
Arguments
Collection name.
Limits: min length 1
Collection description.
Parent collection. Omit it for a top-level collection.
Collection icon.
What the collection groups. Defaults to "item". It cannot be changed afterwards.
Available options: item, space, vehicle, staff, service
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
Unique identifier of the collection.
Collection name.
What the collection groups: item, space, vehicle, staff or service.
Available options: item, space, vehicle, staff, service
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 POST /api/v1/collections.
Related pages
Link to this section: Related pagesCollections
Create a collection
Creates a node of the tree the catalog is organized by.
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?