Skip to main content
POST
/
v2
/
role-bindings
Create a role binding
curl --request POST \
  --url https://api.arize.com/v2/role-bindings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "role_id": "Rol001",
  "user_id": "Usr001",
  "resource_type": "SPACE",
  "resource_id": "Spa001"
}
'
{
  "id": "Rbd001",
  "role_id": "Rol001",
  "user_id": "Usr001",
  "resource_type": "SPACE",
  "resource_id": "Spa001",
  "created_at": "2024-06-01T10:00:00Z",
  "updated_at": "2024-06-01T10:00:00Z"
}

Authorizations

Authorization
string
header
required

Most Arize AI endpoints require authentication. For those endpoints that require authentication, include your API key in the request header using the format

Body

application/json

Body containing role binding creation parameters.

role_id
string
required

A universally unique identifier

Example:

"RW50aXR5OjEyMzQ1"

user_id
string
required

A universally unique identifier

Example:

"RW50aXR5OjEyMzQ1"

resource_type
enum<string>
required

Resource type for the binding. Only SPACE and PROJECT are supported for single-binding CRUD. resource_id must encode the same resource type.

Available options:
SPACE,
PROJECT
resource_id
string
required

A universally unique identifier

Example:

"RW50aXR5OjEyMzQ1"

Response

Role binding successfully created.

id
string
required

Unique identifier for the role binding.

role_id
string
required

A universally unique identifier

Example:

"RW50aXR5OjEyMzQ1"

user_id
string
required

A universally unique identifier

Example:

"RW50aXR5OjEyMzQ1"

resource_type
enum<string>
required

Resource type for the binding. Only SPACE and PROJECT are supported for single-binding CRUD. resource_id must encode the same resource type.

Available options:
SPACE,
PROJECT
resource_id
string
required

A universally unique identifier

Example:

"RW50aXR5OjEyMzQ1"

created_at
string<date-time>
required

Timestamp when the binding was created.

updated_at
string<date-time>
required

Timestamp when the binding was last updated.