Skip to main content
POST
Check equipment out

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

equipment:write

Headers

Idempotency-Key
string

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

Required string length: 1 - 255

Body

application/json

A field not listed here is refused with a 400.

equipmentId
string<uuid>
required

From GET /equipment.

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)$
dueBackAt
string<date-time>
required

When it should be back, ISO 8601 with an offset.

checkedOutToUserId
string<uuid>

The adult taking it: an adult in your group. Leave it out to check it out to the admin who created the key.

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

The event it is going out for, 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)$
quantity
integer

For a consumable only: how many to take.

Required range: 1 <= x <= 100000
notes
string

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 check-out an earlier request with the same Idempotency-Key made.

data
object
required