curl --request GET \
--url https://api.shareofmodel.ai/v1/organizations/{organization_id}/workspaces/{workspace_id}/roles \
--header 'Authorization: <api-key>'[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "jsmith@example.com",
"first_name": "<string>",
"last_name": "<string>",
"last_login": "2023-11-07T05:31:56Z",
"picture": "<string>",
"is_active": true
},
"workspace": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"added_by": "<string>",
"role": "workspace_viewer"
}
]List user workspace roles in a given workspace. Required permission: read:workspace_role
curl --request GET \
--url https://api.shareofmodel.ai/v1/organizations/{organization_id}/workspaces/{workspace_id}/roles \
--header 'Authorization: <api-key>'[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "jsmith@example.com",
"first_name": "<string>",
"last_name": "<string>",
"last_login": "2023-11-07T05:31:56Z",
"picture": "<string>",
"is_active": true
},
"workspace": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"added_by": "<string>",
"role": "workspace_viewer"
}
]Documentation Index
Fetch the complete documentation index at: https://docs.shareofmodel.ai/llms.txt
Use this file to discover all available pages before exploring further.
A UUID string identifying the organization.
A UUID string identifying the workspace.
If set to true, will include inherited roles from organization roles. Id will be set to None
A list of all the user workspace roles on the specified workspace