Skip to main content
POST
/
v2
/
spaces
/
{space_id}
/
users
curl --request POST \
  --url https://api.arize.com/v2/spaces/{space_id}/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "user_id": "VXNlcjoxMjM0NQ==",
  "role": {
    "type": "predefined",
    "name": "member"
  }
}
'
{
  "id": "U3BhY2VNZW1iZXI6MQ==",
  "user_id": "VXNlcjoxMjM0NQ==",
  "space_id": "U3BhY2U6MQ==",
  "role": {
    "type": "predefined",
    "name": "member"
  }
}

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

Path Parameters

space_id
string
required

The unique space identifier (base64) A universally unique identifier (base64-encoded opaque string).

Example:

"RW50aXR5OjEyMzQ1"

Body

application/json

Body containing the user to add to the space

user_id
string
required

The unique identifier of the user to add

Example:

"RW50aXR5OjEyMzQ1"

role
object
required

A role assignment for a space membership. Discriminated by type:

  • predefined: one of the predefined roles (admin, member, read-only, annotator)
  • custom: a custom RBAC role identified by its ID

Response

User successfully added to the space

A space membership record.

id
string
required

Unique identifier for the membership record

Example:

"RW50aXR5OjEyMzQ1"

user_id
string
required

The unique identifier of the user

Example:

"RW50aXR5OjEyMzQ1"

space_id
string
required

The unique identifier of the space

Example:

"RW50aXR5OjEyMzQ1"

role
object
required

A role assignment for a space membership. Discriminated by type:

  • predefined: one of the predefined roles (admin, member, read-only, annotator)
  • custom: a custom RBAC role identified by its ID