The ID of the organization.
The ID of the user whose role is to be updated.
The new role for the member. Must be one of:
owner
, admin
, developer
, operator
, viewer
.Response
Indicates whether the call was successful.
success
if successful, error
if not.Error Responses
Indicates whether the call was successful.
error
if not successful.The error code indicating the reason for failure. Possible values:
UNAUTHORIZED
: The user is not authenticated.ONLY_OWNER_CAN_UPDATE_ROLE
: Only the organization owner can update member roles.CANNOT_CHANGE_OWNER_ROLE
: The owner’s role cannot be changed.INVALID_ROLE
: The provided role is invalid.MEMBER_NOT_FOUND
: The specified user is not a member of the organization.ORG_ID_MUST_BE_STRING
: The provided organization ID is not a string.USER_ID_MUST_BE_STRING
: The provided user ID is not a string.ROLE_MUST_BE_STRING
: The provided role is not a string.