Skip to main content
PATCH
Update an event

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

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

eventId
string<uuid>
required

An event from GET /events.

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

Send only the fields to change. Cost and payment settings are never writable. A field not listed here is refused with a 400.

title
string
Required string length: 1 - 200
startsAt
string<date-time>

When it starts, ISO 8601 with an offset.

endsAt
string<date-time> | null

When it ends. A camp needs one. It must be after startsAt.

location
string | null
Maximum string length: 500
description
string | null

What the event is, shown to families once it is published. Free text never leaves through the API, so it is not returned.

Maximum string length: 10000
sectionIds
string<uuid>[]

Sections from GET /sections the event is for, at least one. A PATCH replaces them.

Required array length: 1 - 20 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)$
status
enum<string>

Read only. Publishing, cancelling and archiving email families, so they happen in Scoutworks: a different status answers 409 source_locked.

Available options:
draft,
published,
archived
notify
boolean
default:false

Send true to send the notices the app sends for this change, such as telling guest groups a joint event has moved. By default nobody is told.

{key}
any

Response

OK

data
object
required
{key}
any