Repeat Shift
Copy a shift's times, staff assignment, break settings, and notes onto one or more target dates.
Endpointโ
POST /v1/staff/shifts/{id}/repeat
Authenticationโ
Requires an API key with the staff:write scope.
Path Parametersโ
| Parameter | Type | Description |
|---|---|---|
id | integer | ID of the source shift to repeat |
Request Bodyโ
| Parameter | Type | Required | Description |
|---|---|---|---|
dates | array | Yes | One or more target dates (YYYY-MM-DD) |
Responseโ
Success (201 Created)โ
{
"data": {
"source_shift_id": 42,
"created_shift_ids": [55, 56, 57],
"count": 3
},
"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 |
| 404 | not_found | Shift not found or belongs to another supplier |
| 422 | validation_error | Invalid or missing dates array |
Example Requestโ
curl -X POST "https://app.equipdash.com/api/v1/staff/shifts/42/repeat" \
-H "Authorization: Bearer eqd_live_abc123xyz789..." \
-H "Content-Type: application/json" \
-d '{
"dates": ["2026-04-08", "2026-04-15", "2026-04-22"]
}'