Update project member

http
PATCH /projects/{project_reference}/members/{user_id}

Changes a non-owner member's role to admin, editor or viewer; the owner changes only through updateProjectOwner. Requires project.members.manage.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.
user_idpathYesUser ID of the project member.

Request body

FieldTypeRequiredDescription
rolestringYesNew role: admin, editor or viewer. Owner promotion uses updateProjectOwner.

Responses

StatusDescription
200The member with the new role
400Invalid user ID or role, or the member is the current owner; use updateProjectOwner
401Unauthorized
403Forbidden - insufficient permissions, or the project is system-managed
404Project or member not found
413Payload too large
500Server error
503internal: authentication state is temporarily unavailable and the request was not processed; retry shortly.