Workspaces API
Version: 1.0
Get current user role
GET
/workspace/orgs/{org_id}/workspaces/{workspace_id}/current-user-roleReturns your user account's role in a workspace.
Request
Responses
200
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