Skip to main content
DELETE
/
schedule
/
v1
/
vacation-calendars
/
{id}
/
days-off
cURL
curl -X DELETE 'https://api.sesamehr.com/schedule/v1/vacation-calendars/a3d4e5f6-1234-5678-9abc-def012345678/days-off' \
  -H 'Authorization: Bearer {access_token}' \
  -H 'Content-Type: application/json' \
  -d '{
    "dayOffIds": [
      "b4c5d6e7-2345-6789-0abc-def123456789",
      "c5d6e7f8-3456-7890-1bcd-ef2345678901"
    ]
  }'
{ "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

id
string<uuid>
required

The unique identifier (UUID v4) of the vacation calendar from which 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 day off IDs to be deleted from the vacation calendar.

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

dayOffIds
string<uuid>[]
required

Array of day off UUIDs to remove from the vacation 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 vacation calendar specified in the path parameter

Behavior:

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

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

Example:
[
  "b4c5d6e7-2345-6789-0abc-def123456789",
  "c5d6e7f8-3456-7890-1bcd-ef2345678901"
]

Response

Object

data
string
Example:

""

meta
object