Admin users
Grant or revoke service-wide admin
PATCH
Auth: Admin key.
Revoking revokes the admin keys this account created, including the one making the call. The last admin can't be demoted.
bearerheader
AuthorizationBearer <token>An API key in the Authorization header.
id*stringAn opaque, type-prefixed id.
application/json- body
admin*booleanThe service-wide admin flag. Revoking it revokes the admin keys this account created, and the last admin can't be demoted.
The account.
application/json- response
id?stringThe account's id.
name?stringDisplay name.
email?stringEmail address, which is also how they sign in.
admin?booleanThe service-wide admin flag. Orthogonal to any organization role.
memberships?array<>Organizations this account belongs to, oldest first, with its role in each.
created_at?stringISO 8601 timestamp.
curl -X PATCH 'https://pouch.example.com/v1/admin/users/string' \ -H 'Content-Type: application/json' \ -d '{ "admin": true}'Example Response
{ "id": "string", "name": "string", "email": "string", "admin": true, "memberships": [ { "organization_id": "string", "organization_name": "string", "role": "owner" } ], "created_at": "string"}