Skip to main content
PATCH
Change an agent share's role

Authorizations

Authorization
string
header
required

User-bound credential carrying an identity: either a session JWT or a user access token (at:*) generated from the user settings UI. Send as Authorization: Bearer <token>. Org API keys (iak_*) are not accepted here - they carry no user identity. Use the x-prismeai-api-key header instead (see OrgApiKeyAuth).

Path Parameters

agentId
string
required
Maximum string length: 64
principalType
enum<string>
required
Available options:
user,
group,
org
Maximum string length: 32
principalId
string
required
Maximum string length: 128

Body

application/json
role_slug
enum<string>
required
Available options:
user,
admin
Maximum string length: 64

Response

Binding updated.

updated
boolean
binding
object

Access binding granting a principal a role on an agent.