Add a user to an organization
Add a single existing account user to an organization with a specified role.
Payload Requirements
- user_id and role are both required.
- If the user is already a member, their role is updated to the specified value (upsert).
Role constraints
- Users with an annotator account role can only be assigned the annotator organization role.
- Users with a non-annotator account role cannot be assigned the annotator organization role.
Requires organization admin.
Valid example
{
"user_id": "VXNlcjo0MjphQmNE",
"role": "MEMBER"
}
Invalid example (annotator account user assigned non-annotator org role — returns 400)
{
"user_id": "VXNlcjo0MjphQmNE",
"role": "ADMIN"
}
<Note>This endpoint is in beta, read more here.</Note>
Path parameters
A universally unique identifier (base64-encoded opaque string).
The unique organization identifier (base64)
Request body
Example request
{
"user_id": "RW50aXR5OjEyMzQ1",
"role": {
"id": "RW50aXR5OjEyMzQ1"
}
}Response
User successfully added to the organization
Example response
{
"id": "RW50aXR5OjEyMzQ1",
"user_id": "RW50aXR5OjEyMzQ1",
"organization_id": "RW50aXR5OjEyMzQ1",
"role": {
"id": "RW50aXR5OjEyMzQ1"
}
}Changes
Changed in 1 of the 16 revisions of this API.13
- ▲
removed
OrganizationPredefinedRoleAssignmentOrganizationCustomRoleAssignmentfrom therolerequest propertyoneOflistrequest-property-one-of-removed
- ○
mapped value for discriminator key
CUSTOMchanged fromOrganizationCustomRoleAssignmenttoOrganizationCustomRoleAssignmentRequestforrolerequest propertyrequest-property-discriminator-mapping-changed
- ○
mapped value for discriminator key
PREDEFINEDchanged fromOrganizationPredefinedRoleAssignmenttoOrganizationPredefinedRoleAssignmentRequestforrolerequest propertyrequest-property-discriminator-mapping-changed
- ○
added
OrganizationPredefinedRoleAssignmentRequestOrganizationCustomRoleAssignmentRequestto therolerequest propertyoneOflistrequest-property-one-of-added
- ▲
Of the 16 revisions, 1 has no diff computed.