Admin organizations
Change a member's role
PATCH
Auth: Admin key.
bearerheader
AuthorizationBearer <token>An API key in the Authorization header.
id*stringAn opaque, type-prefixed id.
userId*stringAn opaque, type-prefixed id.
application/json- body
role*stringThe member's role in this organization. The last owner can't be demoted.
Value in
"owner""member"The member, with the new role.
application/json- response
user_id?stringThe account's id.
name?stringDisplay name.
email?stringEmail address.
role?stringWhat they may do inside this organization.
Value in
"owner""member"admin?booleanWhether they also hold the service-wide admin flag.
created_at?stringISO 8601 timestamp the membership was created.
curl -X PATCH 'https://pouch.example.com/v1/admin/organizations/string/members/string' \ -H 'Content-Type: application/json' \ -d '{ "role": "owner"}'Example Response
{ "user_id": "string", "name": "string", "email": "string", "role": "owner", "admin": true, "created_at": "string"}