talonic_collections_create
Create a collection (or, with kind account, an account). It starts empty: fill it with talonic_collections_add_rule or talonic_collections_add_documents. Admin only. 409 when the name is taken.
A 403 names its reason (insufficient_scope, insufficient_role, no_person, person_inactive, workspace_read_only): the key's person must be allowed the same action in the Talonic web app, and an OAuth connection must have granted the scope. Tell the user; do not retry.
Availability
Listed per area (Spec runs, ingest, ingest settings, document organising, collections, saved filters, document types) when your role can use that area of the workspace. Being listed only means the tool is visible: Talonic checks your role again on every call.
Behaviour and cost
- Not read-only. It can add to or change workspace data.
Parameters
| Parameter | Type | Description |
|---|---|---|
| name * | string | Name, up to 200 characters. |
| description | string | What the collection holds. |
| kind | "collection" | "account" | `account` makes it an account (one company; a document belongs to one account). |
| aliases | string[] | Other names the account goes by. |
Example
{
"name": "<name>"
}Errors
A failed call comes back as a tool error with the HTTP status and a message that says what to change. Troubleshooting lists the common ones.