Skip to main content
PATCH
Change an access policy

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

access: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

policyId
string
required

A built-in’s key (role.leader, addon.treasurer) or a custom policy’s UUID, from GET /access-policies.

Required string length: 1 - 60

Body

application/json

A field not listed here is refused with a 400.

name
string
Required string length: 1 - 80
description
string
Maximum string length: 500
grants
object[]

Replaces every grant.

Maximum array length: 40
allowedPersonTypes
enum<string>[]
Required array length: 1 - 8 elements
Available options:
group_admin,
leader,
young_leader,
trustee,
parent,
youth,
network,
viewer
{key}
any

Response

OK

data
object
required
{key}
any