Zum Inhalt springen
Leadtime
Deutsch
Esc
navigateopen⌘Jpreview

Delete custom holiday year

Note: This endpoint is not implemented. To reset a custom holiday year back to defaults, use POST /holidays/years instead.

How to reset a year: To delete a custom holiday year and return to default holidays:

  1. Call POST /holidays/years with the same year and country values
  2. This will delete the existing custom year and recreate it with default holidays
  3. All custom holidays for that year will be removed

Why this approach? The holiday service uses a “recreate” pattern where creating a custom year automatically deletes any existing custom year for the same year/country combination. This ensures a clean reset to defaults while maintaining data consistency.

DELETE/holidays/years/{yearId}
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
yearIdstringrequired
Responses
200Holiday year deleted successfully
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X DELETE "https://leadtime.app/api/public/holidays/years/string" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
Holiday year deleted successfully