For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
SupportDeel Home
OverviewPlatformEmployer of RecordContractorsGlobal PayrollHREmbeddedDeel ITAPI ReferenceChangelog
OverviewPlatformEmployer of RecordContractorsGlobal PayrollHREmbeddedDeel ITAPI ReferenceChangelog
  • Resources
    • Blog
    • Community
    • API spec
  • Endpoints
    • PATCHProfiles
      • POSTCreate raw time tracking shifts
      • POSTCreate shifts
      • DELDelete a Shift by External ID
      • POSTDelete multiple shifts by External ID
      • GETGet shift details
      • GETList of shifts
      • PATCHUpdate a shift
LogoLogo
SupportDeel Home
EndpointsTime Tracking Shifts

Delete multiple shifts by External ID

POST
/time_tracking/shifts/bulk-delete
POST
/rest/v2/time_tracking/shifts/bulk-delete
$curl -X POST https://api.letsdeel.com/rest/v2/time_tracking/shifts/bulk-delete \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{
> "data": {
> "external_ids": [
> "shift_123",
> "shift_456",
> "shift_789"
> ]
> }
>}'
1{
2 "data": {
3 "message": "Successfully deleted 3 shifts"
4 }
5}

Permanently deletes one or more shifts identified by their external IDs. Deleted shifts are immediately unrecoverable and can no longer be retrieved or modified. Token scopes: time-tracking:write

Was this page helpful?
Previous

Get shift details

Next
Built with

Authentication

AuthorizationBearer

Authentication

The Deel API uses bearer tokens to authenticate requests. All API calls must be made over HTTPS — calls over plain HTTP or without authentication will fail.

1curl -X GET 'https://api.letsdeel.com/rest/v2/contracts' \
2 -H 'Authorization: Bearer YOUR-TOKEN-HERE'

Learn more about authentication

OR
AuthorizationBearer

Standard OAuth2 security scheme based on https://swagger.io/docs/specification/authentication/

Request

Request body to bulk delete shifts by their external IDs.
dataobjectRequired
Request data containing the external IDs of shifts to be deleted.

Response

Shifts deleted successfully
dataobject

Errors

401
Unauthorized Error
403
Forbidden Error