Skip to main content
POST
Add a member

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

members:write

Headers

Idempotency-Key
string

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

Required string length: 1 - 255

Query Parameters

allowDuplicate
enum<string>

Send true to add the record even when it looks like one the group already has. Without it, a likely duplicate answers 409 possible_duplicate with the matching ids.

Available options:
true,
false

Body

application/json

dateOfBirth, gender, address and parents need the members.contacts:read scope too. With notify: true, each parent gets the invitation the app sends. A field not listed here is refused with a 400.

firstName
string
required
Required string length: 1 - 100
lastName
string
required
Required string length: 1 - 100
sectionIds
string<uuid>[]
required

Sections from GET /sections, the main one first. Replaces the member’s sections in your group.

Required array length: 1 - 5 elements
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)$
preferredName
string | null

The name they go by. Null or empty clears it.

Maximum string length: 50
patrolId
string<uuid> | null

A patrol, six or lodge in the member’s main section, by id. Null for none. Patrols are set up in Scoutworks.

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)$
dateOfBirth
string<date> | null

A date, YYYY-MM-DD.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
gender
enum<string> | null
Available options:
male,
female,
other,
prefer_not_to_say
address
object | null

The member’s home address. Each line you send replaces the stored one; null clears it.

parents
object[]

Parents and carers. Someone with that email who is already linked is left as they are. A parent is never removed through the API.

Required array length: 1 - 4 elements
notify
boolean
default:false

Send true to email the family as the app would. By default a write through the API tells nobody.

{key}
any

Response

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

data
object
required
{key}
any