Skip to content

Change a member's role

PATCH
/organizations/{org_id}/members/{user_id}
curl --request PATCH \
--url https://api.perstat.io/organizations/example/members/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "role": "example" }'

Updates an organization member’s role. The caller needs member management rights, may not modify members above their own level nor assign a role beyond it, and demoting the last owner is rejected with 409. Unknown role values return 400. The change is audit-logged.

org_id
required
string
user_id
required
string
Media typeapplication/json
object
role
required
string
Examplegenerated
{
"role": "example"
}