Skip to main content

talonic_collections_assign

Assign a collection to a person (user) or a group. Mode enforced limits what they see to the collection's documents; default only preselects it for them. enforced changes what someone can see: call only when the user asked. Admin only.

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

ParameterTypeDescription
collection_id *stringThe collection, from talonic_collections_list.
principal_type *"user" | "group"A person or a group.
principal_id *stringThe person's user id or the group id.
mode *"enforced" | "default"enforced: they see only the collection; default: preselected for them.

Example

Tool input
{
  "collection_id": "<collection_id>",
  "principal_type": "user",
  "principal_id": "<principal_id>",
  "mode": "enforced"
}

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.