Skip to main content
POST
Make 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

Idempotency-Key
string

Unique per access policy: any printable text up to 255 characters. A retry with the same key and body within 24 hours answers with the first access policy instead of making another. Recommended.

Required string length: 1 - 255

Body

application/json

A field not listed here is refused with a 400.

name
string
required
Required string length: 1 - 80
grants
object[]
required

One row per area. A grant of settings at any level, or of team at manage, answers 403 admin_protected.

Maximum array length: 40
allowedPersonTypes
enum<string>[]
required

The person types it may be given to.

Required array length: 1 - 8 elements
Available options:
group_admin,
leader,
young_leader,
trustee,
parent,
youth,
network,
viewer
description
string
default:""
Maximum string length: 500
basedOn
string | null

The built-in it starts from, so Scoutworks can say so.

Maximum string length: 60
{key}
any

Response

The access policy an earlier request with the same Idempotency-Key made.

data
object
required
{key}
any