Bulk-subscribe one or more users to a holiday category so the listed dates are automatically blocked from their availability.
curl --request POST \
--url https://api.zeeg.me/v2/holidays/subscriptions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"users": {
"emails": [
"lena.meier@horizondigital.de"
]
},
"subscription": {
"categoryType": "country",
"categoryKey": "DE"
}
}
'{
"users": [
{
"email": "lena.meier@horizondigital.de",
"slug": "lena-meier",
"uuid": "Lena6mK2QwR9XPv",
"status": "created"
},
{
"email": "tom.schmidt@horizondigital.de",
"slug": "tom-schmidt",
"uuid": "TomXk3J8YqB1ZPN",
"status": "skipped"
}
]
}Documentation Index
Fetch the complete documentation index at: https://developer.zeeg.me/llms.txt
Use this file to discover all available pages before exploring further.
Hide child attributes
country, region Country or region key from /holidays/categories (e.g. DE, DE-BY).
30Holiday keys (from /holidays/preview) to exclude from each target's availability.
100User-based target. Mutually exclusive with team. Provide exactly one of emails, slugs or uuids.
At least one target was created or skipped.
Hide child attributes
Target user's email, or the lookup key when resolution failed for an emails request.
Target user's slug, or the lookup key when resolution failed for a slugs request.
Target user's public UUID, or the lookup key when resolution failed for a uuids request.
created — new subscription added. skipped — user was already subscribed to the same category (any new excludedHolidayKeys were merged in). failed — see reason.
created, skipped, failed Human-readable failure reason. Present only when status is failed.
curl --request POST \
--url https://api.zeeg.me/v2/holidays/subscriptions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"users": {
"emails": [
"lena.meier@horizondigital.de"
]
},
"subscription": {
"categoryType": "country",
"categoryKey": "DE"
}
}
'{
"users": [
{
"email": "lena.meier@horizondigital.de",
"slug": "lena-meier",
"uuid": "Lena6mK2QwR9XPv",
"status": "created"
},
{
"email": "tom.schmidt@horizondigital.de",
"slug": "tom-schmidt",
"uuid": "TomXk3J8YqB1ZPN",
"status": "skipped"
}
]
}