Projects

Update user role on a project

This endpoint allows updation of a user to a project. User role can be changed from editor to admin or vice versa.

patch/workspaces/{workspace_id}/projects/{project_id}/users

Request

  • Base URL: https://app.mammoth.io/api/v2
  • URL: https://app.mammoth.io/api/v2/workspaces/{workspace_id}/projects/{project_id}/users
  • 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
project_idinteger required

Project to delete

Example:4

Query parameters

user_idinteger nullable

Id of the user

Example:4
invite_idinteger nullable

Id of the invited user

Example:4

Request body

Example request

{
  "patch": [
    {
      "op": "replace",
      "path": "permissions",
      "value": "project_admin"
    }
  ]
}

Response

Successfully updated user role on project

Changes

No recorded changes to this operation across all 3 revisions of this API.