Skip to main content
POST
/
time-off
curl --request POST \
  --url https://api.zeeg.me/v2/time-off \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "users": {
    "emails": [
      "lena.meier@horizondigital.de",
      "tom.schmidt@horizondigital.de"
    ]
  },
  "type": "vacation",
  "title": "Company offsite",
  "startDate": "2026-09-01",
  "endDate": "2026-09-04"
}
'
{
  "users": [
    {
      "email": "lena.meier@horizondigital.de",
      "slug": "lena-meier",
      "uuid": "Lena6mK2QwR9XPv",
      "status": "created",
      "period": {
        "uuid": "01907f10-5b00-7b31-9cf0-1234567890ab",
        "uri": "https://api.zeeg.me/v2/time-off/01907f10-5b00-7b31-9cf0-1234567890ab",
        "type": "vacation",
        "title": "Company offsite",
        "startDate": "2026-09-01",
        "endDate": "2026-09-04",
        "startHalfDay": false,
        "endHalfDay": false,
        "startHalfDayCutoff": null,
        "endHalfDayCutoff": null,
        "note": null
      },
      "replaced": []
    },
    {
      "email": "tom.schmidt@horizondigital.de",
      "slug": "tom-schmidt",
      "uuid": "TomXk3J8YqB1ZPN",
      "status": "replaced",
      "period": {
        "uuid": "01907f10-5b00-7b31-9cf0-2222333344ff",
        "uri": "https://api.zeeg.me/v2/time-off/01907f10-5b00-7b31-9cf0-2222333344ff",
        "type": "vacation",
        "title": "Company offsite",
        "startDate": "2026-09-01",
        "endDate": "2026-09-04",
        "startHalfDay": false,
        "endHalfDay": false,
        "startHalfDayCutoff": null,
        "endHalfDayCutoff": null,
        "note": null
      },
      "replaced": [
        "01907f10-5b00-7b31-9cf0-9999888877aa"
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Body

application/json
type
enum<string>
required
Available options:
vacation,
out_of_office
title
string
required
Maximum string length: 255
startDate
string<date>
required
endDate
string<date>
required
users
object

User-based target. Mutually exclusive with team. Provide exactly one of emails, slugs or uuids.

team
object

Team-based target. Mutually exclusive with users. Provide exactly one of uuid or slug.

startHalfDay
boolean
endHalfDay
boolean
startHalfDayCutoff
string | null

Half-day cutoff (HH:MM). Required when startHalfDay is true.

endHalfDayCutoff
string | null

Half-day cutoff (HH:MM). Required when endHalfDay is true.

note
string | null
Maximum string length: 1000

Response

At least one period was created or replaced.

users
object[]
required
Last modified on April 27, 2026