Skip to main content
POST
Give Capability To Principal

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

principal_id
string<uuid>
required

Query Parameters

capability
string[]
required

Capability to grant. Must be in the capability catalog. Repeat the parameter to grant several at once: ?capability=a&capability=b.

Example:
tenant_id
string<uuid> | null

Tenant the grant is scoped to when the principal is a user. Defaults to the caller's current tenant. Ignored for a role or a tenant, whose own tenant is always used.

Response

Successful Response