Users

Change a users role

Change the role of a user, only available to admin authorization.

post/users.update_role

Request body

idstring uuid required

Unique identifier for the user.

role'admin' | 'member' | 'viewer' | 'guest' required

Response

OK

Example response

{
  "data": {
    "name": "Jane Doe"
  }
}

Changes

Changed in 2 of the 6 revisions of this API.10

    • added the non-success response with the status 429

      response-non-success-status-added

    • added the optional property data to the response with the 401 status

      response-optional-property-added

    • added the optional property data to the response with the 403 status

      response-optional-property-added

    • added the optional property data to the response with the 404 status

      response-optional-property-added

    • added the optional property message to the response with the 401 status

      response-optional-property-added

    • added the optional property message to the response with the 403 status

      response-optional-property-added

    • added the optional property message to the response with the 404 status

      response-optional-property-added

    • added the optional property status to the response with the 401 status

      response-optional-property-added

    • added the optional property status to the response with the 403 status

      response-optional-property-added

    • added the optional property status to the response with the 404 status

      response-optional-property-added