Update User

Change a member's organization role.

Change a member's organization role. The response is the updated user.

POST /v1/organizations/users/:user_id

Path parameters

user_idstringrequired

The user's ID.

Body

rolestringrequired

The new role. admin and owner can't be assigned through the API.

Allowed values:userdeveloperbilling

Any other field is rejected with 400.

Response

(object)Useroptional

The updated user object.

Errors

StatusReason
400The role is invalid, or the member is an admin or the owner, whose role can't be changed through the API.
404No member with this ID exists in your organization.