Add a user to a space
Add a single existing account user to a space with a specified role.
Payload Requirements
user_idis required and must be a valid user identifier (base64).roleis required and must be a role assignment object with atypediscriminator:{ "type": "predefined", "name": "admin" }— one of the predefined roles:admin,member,read-only,annotator.{ "type": "custom", "id": "<role_id>" }— a custom RBAC role, using its unique identifier.
- If the user is already a member, their role is updated to the specified value (upsert).
- The user must already be a member of the space’s parent organization; auto-enrollment is not performed (400 if not a member).
Role constraints
- Users with an
annotatoraccount role can only be assigned theannotatorpredefined space role. - Users with a non-annotator account role cannot be assigned the
annotatorpredefined space role.
Authorization
Requires space admin role when using a predefined role, or ROLE_BINDING_CREATE
permission (RBAC) when using a custom role.
Authorizations
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
The unique space identifier (base64) A universally unique identifier (base64-encoded opaque string).
"RW50aXR5OjEyMzQ1"
Body
Body containing the user to add to the space
The unique identifier of the user to add
"RW50aXR5OjEyMzQ1"
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
- Option 1
- Option 2
Response
User successfully added to the space
A space membership record.
Unique identifier for the membership record
"RW50aXR5OjEyMzQ1"
The unique identifier of the user
"RW50aXR5OjEyMzQ1"
The unique identifier of the space
"RW50aXR5OjEyMzQ1"
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
- Option 1
- Option 2