Skip to main content
POST
Log volunteer hours

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

recognition:write

Headers

Idempotency-Key
string

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

Required string length: 1 - 255

Body

application/json

A field not listed here is refused with a 400.

occurredAt
string<date-time>
required

When the time was given, ISO 8601 with an offset.

durationMinutes
integer
required

How long, in minutes: 1 to 1,440.

Required range: 1 <= x <= 1440
userId
string<uuid>

An adult in your group. Send this or memberId, not both.

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)$
memberId
string<uuid>

A young person in your group, such as a Young Leader or an Explorer doing DofE volunteering, as GET /members lists them.

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)$
note
string

What they did, up to 2,000 characters. Shown in Scoutworks. Free text never leaves through the API, so it is not returned.

Maximum string length: 2000
{key}
any

Response

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

data
object
required