Change a user's role (owner)

put/users/{userId}/role

Request

  • Base URL: /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/v1/users/{userId}/role
  • Auth: HTTP bearer

Path parameters

userIdstring required

Request body

role'owner' | 'admin' | 'operator' | 'viewer' required

Response

Updated user

idstring required
org_idstring required
emailstring required
namestring required
avatar_urlstring
github_idinteger nullable

GitHub account id for OAuth-provisioned users; null for dev users.

role'owner' | 'admin' | 'operator' | 'viewer' required
last_login_atstring date-time
created_atstring date-time required
updated_atstring date-time required

Changes

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