Marks an existing schedule shift record for a restaurant employee as deleted. If the shift record was already deleted, then the operation will succeed (HTTP 200 response code) and no change will be made.
Returns the specified shift, with the deleted flag set to
true
.
The Toast platform GUID or external identifier was malformed.
The Toast platform GUID or external identifier does not match any shifts at the current restaurant.
An unexpected internal error occurred. There is a
requestId
attached to this error that can be referenced
by Toast support.
curl -i -X DELETE \ 'https://toast-api-server/labor/v1/shifts/{shiftId}' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Toast-Restaurant-External-ID: string'
{- "guid": "string",
- "entityType": "string",
- "externalId": "string",
- "createdDate": "2019-08-24T14:15:22Z",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "deletedDate": "2019-08-24T14:15:22Z",
- "deleted": true,
- "jobReference": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "employeeReference": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}, - "inDate": "2019-08-24T14:15:22Z",
- "outDate": "2019-08-24T14:15:22Z",
- "scheduleConfig": {
- "guid": "string",
- "minBeforeClockIn": 0,
- "minAfterClockIn": 0,
- "minBeforeClockOut": 0,
- "minAfterClockOut": 0
}
}