curl --request POST \
--url https://api.shareofmodel.ai/v1/organizations/{organization_id}/workspaces/{workspace_id}/roles \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"user_email": "jsmith@example.com",
"role": "workspace_viewer"
}
'{
"user_email": "test_email@test.com",
"role": "workspace_editor"
}Create a new user workspace role. Required permission: write:workspace_role
curl --request POST \
--url https://api.shareofmodel.ai/v1/organizations/{organization_id}/workspaces/{workspace_id}/roles \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"user_email": "jsmith@example.com",
"role": "workspace_viewer"
}
'{
"user_email": "test_email@test.com",
"role": "workspace_editor"
}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.