Skip to content
Hexel StudioDocs

Set my tool permissions

PUT/titan/management/me/tool-permissions/deployments/{deployment_id}/toolkits/{toolkit}

The caller's own tool permissions for one toolkit, in the organization of the deployment: the person's own CIAM user token (sub is the person), no IAM permission. A person may only tighten below the organization's ceiling.

Path parameters

The deployment the person's agents act through; its organization holds the settings.

toolkitstring

A toolkit slug (for example MCP_GITHUB).

Headers

Bearer <token>. A Hexel Studio access token for a member or a service user of your organization (or send a service user's API key as X-API-Key).

If-Matchoptional string

The version read (ETag or version; "0" when none is stored). The write is refused with 412 TOOL_PERMISSIONS_VERSION_STALE when the stored record has another version; without it the record is replaced unconditionally.

Body parameters

groupsoptional object
toolkitstring
toolsoptional map[string]
vinteger

One of: 1

Returns

200Organization-scoped result.ToolPermissionsView

deploymentsoptional array of object
recordobject
toolkitstring
toolsarray of object
vinteger

One of: 1

versionstring

Errors

  • 400INVALID_REQUEST: the body is not the closed record (v 1, the path's toolkit, groups read/write/delete and tools levels allow, approval or blocked, nothing else) or the path has a query; TOOL_NOT_IN_TOOLKIT when a tools key names no tool of the toolkit in the organization's catalog (for a person: none the organization did not block).
  • 401Missing or invalid authenticated context.
  • 403FORBIDDEN: not a person's own user token (a service user or role session), or the person is neither a member of the deployment's organization nor of another organization on a deployment that acts for people of other organizations.
  • 404NOT_FOUND for every tool permissions path while the organization does not have tool permissions, or the deployment is unknown or retired; TOOLKIT_NOT_FOUND when no tool of the toolkit is in the organization's catalog.
  • 405HTTP method is not supported on this route.
  • 409ABOVE_ORGANIZATION_CEILING: a person's level is less strict than the organization's for the tool (or, for a group, its group_ceilings level); APPROVAL_REQUIRED_BY_TOOL: allow for a tool with approval_required_by_tool; TOOL_PERMISSIONS_LIMIT: over 512 tools in the record, 10,000 people with settings in the organization (at most 1,000 of them from other organizations), or the composed policy's bounds for a deployment; POLICY_LAYER_INVALID: a deployment's Configuration Authority would refuse the composed policy. Nothing is stored.
  • 412TOOL_PERMISSIONS_VERSION_STALE: If-Match names a version other than the stored record's; read it again and retry.
  • 413Request body exceeds its size limit.
  • 415Unsupported request media type.
  • 429RATE_LIMITED: the person wrote 30 times in the last minute; Retry-After says when to try again.
  • 502The plane or a deployment's Configuration Authority refused or answered unexpectedly (closed code).
  • 503Local storage or a Configuration Authority unavailable (the organization's tool list cannot be read).