Projects
Update multiple projects by adding/removing users or changing roles of the users
Update multiple projects by adding/removing users or changing roles of the users
patch/workspaces/{workspace_id}/projects
Request
- Base URL: https://app.mammoth.io/api/v2
- URL: https://app.mammoth.io/api/v2/workspaces/{workspace_id}/projects
- 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
Request body
Example request
{
"patches": [
{
"op": "add",
"path": "role",
"value": [
{
"project_id": 4,
"user_roles": [
{
"user_id": 3,
"role": "project_admin"
},
{
"user_id": 4,
"role": "project_admin"
}
],
"invite_roles": [
{
"invite_id": 3,
"role": "project_admin"
}
]
}
]
}
]
}Response
Request fulfilled, document follows
Changes
No recorded changes to this operation across all 3 revisions of this API.