Add a new user to a workspace.
Add a new user to a workspace.
Path Parameters
- organization_id integer required
ID of the workspace
- application/json
Request Body required
- role string required
Possible values: [
USER
,VIEWER
,ANNOTATOR
,ADMIN
,MANAGER
]User's role
- user_id integer required
The ID of the user
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Workspace was changed
- application/json
- Schema
- Example (from schema)
Schema
- id integer
The ID of the permission object
- role string
Possible values: [
USER
,VIEWER
,ANNOTATOR
,ADMIN
,MANAGER
]User's role
- user string
User's display name
{
"id": 5,
"role": "USER",
"user": "John Doe"
}
The body sent is invalid. Check the error message for more details
User is not authenticated. This means token is either not present or invalid
User is read-only or does not have the minimal required organization role "ADMIN"
No workspace was found that corresponds to the ID sent
Something is wrong with the API.
Loading...