Skip to content
Navigation

Change the role of a member

Sets the product role of a membership in the caller's organization. Body: { roleSlug: string }. An owner keeps owner beside the new role; owner itself is not a valid value. Authorization: organization administrators only. Returns 204 on success; 400 on a malformed body; 404 if it does not exist or is not in this org; 409 when refused: your own membership (cannot_change_self) or a directory-managed membership (directory_managed).

PATCH
https://api.cloudraker.com/users/memberships/{membershipId}
Try it
Path parameters
Request body
Live API request

This request can change data or incur charges for the selected organization.

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • membershipId
    string
    required

Request body JSON required

  • roleSlug
    string
    required
    maxLength: 64 · minLength: 1

Returns

204

Role changed (empty body).

Type to search…

↑↓ navigate↵ selectEsc close