Assign role to user
Changed onAssigns a role to the user. Provide exactly one of role_id or role_identifier; when role_identifier is used, owner_type is required to disambiguate roles that share an identifier across owner types (and must be omitted with role_id). An optional (scope_type, scope_id) pair scopes the grant; only platform roles on the org zone may carry a scope, and a zone scope must reference a different zone in the same organization.
Request
- Base URLhttps://docs.keycard.ai (the document declares no server; this is the origin it was published from)
- URLhttps://docs.keycard.ai/zones/{zoneId}/users/{userId}/roles
- Auth
- HTTP bearer
- or OAuth 2Client credentialsToken URL: /service-account-token
Path parameters
Zone ID
User ID
Request body
Response
Represents a role assigned to a principal within a zone
Changes
- breaking
the
request property's minLength was increased from0to1 - breaking
the
request property's minLength was increased from0to1 - breaking
added the pattern
^[a-z0-9]+(?:[-_][a-z0-9]+)*$to the request property/ - info
added the non-success response with the status
- info
added the non-success response with the status
- info
the
response's property pattern^[a-z0-9]+(?:[-_][a-z0-9]+)*$was added for the status - info
added the required property
to the response with the status
- breaking
- info
endpoint added
- info