Workspaces API
Version: 1.0
Assign user role
POST
/workspace/admin/orgs/{org_id}/workspaces/{workspace_id}/usersAssigns a user a role in a workspace. Admin endpoints allow organization admin users to access any workspace, regardless of their role or lack thereof within the workspace.
Request
Responses
201
Successful Response
Response schema
role"owner" | "editor" | "viewer"
user_iduuid
401
No permission -- see authorization schemes
Response schema
detailstring | null
invalid-paramsarray | null
statusinteger
titlestring
typestring
403
Request forbidden -- authorization will not help
Response schema
detailstring | null
invalid-paramsarray | null
statusinteger
titlestring
typestring
404
Resource not found or user lacks access
Response schema
detailstring | null
invalid-paramsarray | null
statusinteger
titlestring
typestring
405
Specified method is invalid for this resource
Response schema
detailstring | null
invalid-paramsarray | null
statusinteger
titlestring
typestring
410
Resource is gone
Response schema
detailstring | null
invalid-paramsarray | null
statusinteger
titlestring
typestring
422
Unprocessable Entity
Response schema
detailstring | null
invalid-paramsarray | null
statusinteger
titlestring
typestring