Create a new role binding that assigns a role to a user on a resource.
Payload Requirements
role_id, user_id, resource_type, and resource_id are required.resource_type must be SPACE or PROJECT.resource_id must be a global ID for the selected resource_type.409 Conflict.id, created_at, updated_at) are returned
by the server and are rejected on input.Valid example
{
"role_id": "Um9sZToxOlY0S2E=",
"user_id": "VXNlcjoxOmxQZzI=",
"resource_type": "PROJECT",
"resource_id": "TW9kZWw6MTpGdmxM"
}
Invalid example
{
"role_id": "Um9sZToxOlY0S2E=",
"user_id": "VXNlcjoxOmxQZzI=",
"resource_type": "PROJECT",
"resource_id": "U3BhY2U6MTp1Rk4x"
}
This fails because resource_id must encode a PROJECT ID when
resource_type is PROJECT.
Use PATCH /v2/role-bindings/{binding_id} to change the assigned role
for an existing binding.
Most Arize AI endpoints require authentication. For those endpoints that require authentication, include your API key in the request header using the format
Body containing role binding creation parameters.
A universally unique identifier
"RW50aXR5OjEyMzQ1"
A universally unique identifier
"RW50aXR5OjEyMzQ1"
Resource type for the binding. Only SPACE and PROJECT are supported for
single-binding CRUD. resource_id must encode the same resource type.
SPACE, PROJECT A universally unique identifier
"RW50aXR5OjEyMzQ1"
Role binding successfully created.
Unique identifier for the role binding.
A universally unique identifier
"RW50aXR5OjEyMzQ1"
A universally unique identifier
"RW50aXR5OjEyMzQ1"
Resource type for the binding. Only SPACE and PROJECT are supported for
single-binding CRUD. resource_id must encode the same resource type.
SPACE, PROJECT A universally unique identifier
"RW50aXR5OjEyMzQ1"
Timestamp when the binding was created.
Timestamp when the binding was last updated.