Skip to main content

Compartments

Group sources, document types or documents into compartments that only their members see, and manage who belongs to each compartment.

A compartment is a named group of documents (by source, document type or single document) that only its members see.

GET/v1/records/compartments

cURL

curl -X GET https://api.talonic.com/v1/records/compartments \
  -H "Authorization: Bearer $TALONIC_API_KEY"
GET/v1/records/compartments/mine

cURL

curl -X GET https://api.talonic.com/v1/records/compartments/mine \
  -H "Authorization: Bearer $TALONIC_API_KEY"
POST/v1/records/compartments

cURL

curl -X POST https://api.talonic.com/v1/records/compartments \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "\u2026"}'
PATCH/v1/records/compartments/{id}

cURL

curl -X PATCH https://api.talonic.com/v1/records/compartments/$ID \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
DELETE/v1/records/compartments/{id}

cURL

curl -X DELETE https://api.talonic.com/v1/records/compartments/$ID \
  -H "Authorization: Bearer $TALONIC_API_KEY"
GET/v1/records/compartments/{id}/members

cURL

curl -X GET https://api.talonic.com/v1/records/compartments/$ID/members \
  -H "Authorization: Bearer $TALONIC_API_KEY"
POST/v1/records/compartments/{id}/members

cURL

curl -X POST https://api.talonic.com/v1/records/compartments/$ID/members \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_ids": []}'
DELETE/v1/records/compartments/{id}/members/{userId}

cURL

curl -X DELETE https://api.talonic.com/v1/records/compartments/$ID/members/$USERID \
  -H "Authorization: Bearer $TALONIC_API_KEY"
GET/v1/records/compartments/{id}/bindings

cURL

curl -X GET https://api.talonic.com/v1/records/compartments/$ID/bindings \
  -H "Authorization: Bearer $TALONIC_API_KEY"
POST/v1/records/compartments/{id}/bindings

cURL

curl -X POST https://api.talonic.com/v1/records/compartments/$ID/bindings \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"scope_type": "source_connection", "scope_id": "\u2026"}'
DELETE/v1/records/compartments/{id}/bindings/{bindingId}

cURL

curl -X DELETE https://api.talonic.com/v1/records/compartments/$ID/bindings/$BINDINGID \
  -H "Authorization: Bearer $TALONIC_API_KEY"
Errors: 401 missing or invalid credential; 403 with a reason (insufficient_scope, insufficient_role, person_inactive, not_member, no_person, workspace_read_only, or STEP_UP_REQUIRED); 404 unknown id in this workspace; 429 rate limited (see Retry-After).