Skip to main content
POST
Grant a scoped role to a member (members.manage)

Authorizations

Authorization
string
header
required

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

Body

application/json
ankra_user_id
string<uuid>
required
scope_type
enum<string>
required
Available options:
organisation,
cluster,
cluster_group
role_slug
string

Exactly one of role_slug and role_id must be supplied.

role_id
string<uuid>

An existing custom role in this organisation.

scope_id
string<uuid> | null

Required for cluster and cluster_group; null for organisation.

Response

Success

id
string<uuid>
required
ankra_user_id
string<uuid>
required
role_slug
string | null
required
role_id
string<uuid> | null
required
scope_type
string
required
scope_id
string<uuid> | null
required
created_at
string
required