Skip to main content

Mark Shifts Open

Clear the staff assignment on all shifts within a date range, turning them into open shifts. Useful for re-rostering an entire week.

Endpointโ€‹

POST /v1/staff/shifts/mark-all-open

Authenticationโ€‹

Requires an API key with the staff:write scope.

Request Bodyโ€‹

ParameterTypeRequiredDescription
start_datestringYesStart of the date range (YYYY-MM-DD)
end_datestringYesEnd of the date range (YYYY-MM-DD, must be โ‰ฅ start_date)

Responseโ€‹

Success (200 OK)โ€‹

{
"data": {
"affected_count": 5
},
"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
422validation_errorMissing or invalid date fields

Example Requestโ€‹

curl -X POST "https://app.equipdash.com/api/v1/staff/shifts/mark-all-open" \
-H "Authorization: Bearer eqd_live_abc123xyz789..." \
-H "Content-Type: application/json" \
-d '{
"start_date": "2026-04-07",
"end_date": "2026-04-13"
}'