CalculateHolidayDate calculates the date for a variable holiday.
POST/api/v1/voice/holidays/:id/calculate
Computes the actual date for variable holidays in a specific year. Results may be cached for performance.
Parameters
- id: Required, variable holiday ID
- year: Required, year to calculate (2000-2100)
Response
- holiday_id: The holiday ID
- year: The requested year
- calculated_date: Computed date (YYYY-MM-DD format)
- cached: Whether result came from cache
Errors
- NOT_FOUND: Holiday does not exist
- INVALID_ARGUMENT: Holiday is not variable type
- PERMISSION_DENIED: Caller lacks voice:schedule:read permission
Request
Responses
- 200
- default
A successful response.
An unexpected error response.