Skip to main content

Load Schedule Template

Apply a saved template to a target week, creating new shifts from the template's stored shifts.

Endpointโ€‹

POST /v1/staff/schedule/templates/{id}/load

Authenticationโ€‹

Requires an API key with the staff:write scope.

Path Parametersโ€‹

ParameterTypeDescription
idintegerTemplate ID

Request Bodyโ€‹

ParameterTypeRequiredDescription
target_week_startstringYesMonday of the week to load the template into (YYYY-MM-DD)
overwritebooleanNoDelete existing shifts in the target week before loading (default: false)

Responseโ€‹

Success (200 OK)โ€‹

{
"data": {
"created_count": 10,
"skipped_count": 0
},
"meta": {
"request_id": "req_abc123",
"timestamp": "2026-04-01T09:00:00+00:00"
}
}

Errorsโ€‹

StatusCodeDescription
401authentication_requiredNo API key provided
401invalid_api_keyInvalid API key
403insufficient_scopeAPI key lacks staff:write scope
404template_not_foundTemplate not found or belongs to another supplier
422validation_errorMissing or invalid fields

Example Requestโ€‹

curl -X POST "https://app.equipdash.com/api/v1/staff/schedule/templates/3/load" \
-H "Authorization: Bearer eqd_live_abc123xyz789..." \
-H "Content-Type: application/json" \
-d '{
"target_week_start": "2026-04-20",
"overwrite": false
}'