Save Schedule Template
Snapshot a week's shifts into a named reusable template.
Endpointโ
POST /v1/staff/schedule/templates
Authenticationโ
Requires an API key with the staff:write scope.
Request Bodyโ
| Parameter | Type | Required | Description |
|---|---|---|---|
week_start | string | Yes | Monday of the week to snapshot (YYYY-MM-DD) |
name | string | Yes | Template name (max 255 characters) |
Responseโ
Success (201 Created)โ
{
"data": {
"id": 3,
"name": "Easter Weekend",
"shift_count": 10,
"created_at": "2026-04-01T09:00:00+00:00",
"updated_at": "2026-04-01T09:00:00+00:00"
},
"meta": {
"request_id": "req_abc123",
"timestamp": "2026-04-01T09:00:00+00:00"
}
}
Errorsโ
| Status | Code | Description |
|---|---|---|
| 401 | authentication_required | No API key provided |
| 401 | invalid_api_key | Invalid API key |
| 403 | insufficient_scope | API key lacks staff:write scope |
| 422 | validation_error | Missing or invalid fields |
Example Requestโ
curl -X POST "https://app.equipdash.com/api/v1/staff/schedule/templates" \
-H "Authorization: Bearer eqd_live_abc123xyz789..." \
-H "Content-Type: application/json" \
-d '{
"week_start": "2026-03-30",
"name": "Easter Weekend"
}'