Updates the role of a member in an organization.
owner
, admin
, developer
, operator
, viewer
.success
if successful, error
if not.error
if not successful.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.