Skip to main content
PATCH
Change a user’s person type or sections

Authorizations

Authorization
string
header
required

A group API key, sent as Authorization: Bearer sw_live_…. Keys from staging and the demo start sw_test_ instead. A group admin creates keys in Settings → Integrations → API keys.

Scopes

users:write

Headers

If-Match
string

The ETag you last read for this record. If the record has changed since, the change is refused with 412 stale_write, which carries its current ETag. Optional, and recommended: without it the last write wins.

Path Parameters

userId
string<uuid>
required

A user’s id from GET /users.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Body

application/json

A field not listed here is refused with a 400.

personType
enum<string>

Their new person type. group_admin answers 403. A move to young_leader needs a linked member record, as in the app.

Available options:
group_admin,
leader,
young_leader,
trustee
sectionIds
string<uuid>[]

Replaces the sections they help run. A trustee has no sections.

Maximum array length: 30
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
alsoTrustee
boolean

Make them a trustee as well, or end that.

{key}
any

Response

OK

data
object
required
{key}
any