Workspaces
Change user role in workspace
This endpoint can be used to change user role in workspace
patch/workspaces/{workspace_id}/users/{user_id}
Request
- Base URL: https://app.mammoth.io/api/v2
- URL: https://app.mammoth.io/api/v2/workspaces/{workspace_id}/users/{user_id}
- Auth: one of:
- HTTP bearer
- API key in header X-API-KEY and API key in header X-API-SECRET and API key in header X-WORKSPACE-ID
Path parameters
workspace_idinteger required
Workspace refers to a collection of projects. Workspace ID is unique identifier for workspace.
Example:4
user_idinteger required
Id of the user
Example:4
Request body
Example request
{
"patches": [
{
"op": "replace",
"path": "role",
"value": "workspace_member"
}
]
}Response
User role updated
Changes
No recorded changes to this operation across all 3 revisions of this API.