Skip to main content
DELETE
/
schedule
/
v1
/
absence-day-off
/
{calendarId}
cURL
curl -X DELETE 'https://api.sesamehr.com/schedule/v1/absence-day-off/f8628a31-08d6-47cf-bcdc-bac5a5fc9c82' \
  -H 'Authorization: Bearer {access_token}' \
  -H 'Content-Type: application/json' \
  -d '{
    "dayOffIds": [
      "a4185f6c-2c7c-4933-9110-989dcad882fe",
      "e882aa04-eb54-44f3-a483-0aa4c1f048fd"
    ]
  }'
{
  "data": "",
  "meta": {
    "currentPage": 1,
    "lastPage": 1,
    "total": 1,
    "perPage": 1
  }
}

Authorizations

Authorization
string
header
required

API token obtained from Sesame HR Dashboard > Settings > Integrations > API

Path Parameters

calendarId
string<uuid>
required

The unique identifier (UUID v4) of the calendar from which absence days off will be deleted.

Requirements:

  • Must be a valid UUID v4 format
  • The calendar must exist in the system
  • The authenticated user must have permission to modify this calendar

Body

application/json

Request body containing the array of absence day off IDs to be deleted from the calendar.

Note: All day off IDs must belong to the calendar specified in the path parameter.

dayOffIds
string<uuid>[]
required

Array of absence day off UUIDs to remove from the calendar.

Validation Rules:

  • Must be an array (can be empty)
  • Each element must be a valid UUID v4 string
  • Each UUID must correspond to an existing day off in the system
  • Each day off must belong to the calendar specified in the path parameter

Behavior:

  • Empty arrays are allowed and result in no changes
  • Duplicate IDs are processed without error
  • Order of IDs does not affect the operation

Unique identifier (UUID v4) of the absence day off to delete

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
Example:
[
"a4185f6c-2c7c-4933-9110-989dcad882fe",
"e882aa04-eb54-44f3-a483-0aa4c1f048fd"
]

Response

Object

data
string
Example:

""

meta
object