Skip to main content
POST
Add an override

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 override: any printable text up to 255 characters. A retry with the same key and body within 24 hours answers with the first override instead of making another. Recommended.

Required string length: 1 - 255

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

One grant added (level view, edit or manage, with a scope) or one area taken away (level: none). A grant of settings, or of team at manage, answers 403 admin_protected. A field not listed here is refused with a 400.

area
enum<string>
required
Available options:
members,
attendance,
events,
badges,
comms,
finance,
equipment,
insights,
risk,
settings,
calendar,
marketplace,
family,
volunteering,
claims,
hire,
team,
files,
tasks,
award,
governance
level
enum<string>
required

none takes the area away; any other level adds it.

Available options:
view,
edit,
manage,
none
reason
string
required

Why this person differs from their policies. Required.

Required string length: 1 - 500
scope
enum<string>

Required unless level is none.

Available options:
group,
sections,
assigned,
own
note
enum<string>

A limit.

Available options:
records,
register,
drafts,
stores,
requests,
assessments,
portal,
directory
expiresAt
string<date-time> | null

When it stops counting. Leave it out for until it is removed.

{key}
any

Response

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

data
object
required
{key}
any