Skip to main content

Holidays

The organization's holidays — the days a business-day count skips. National ones arrive through sync, which imports from BrasilAPI only what is missing and never resurrects a holiday removed on purpose; state and municipal holidays and optional days off are created by hand.

CommandHTTPDescription
holidays listGET /v1/holidaysList holidays
holidays createPOST /v1/holidaysCreate a holiday
holidays getGET /v1/holidays/{id}Get a holiday
holidays updatePATCH /v1/holidays/{id}Update a holiday
holidays deleteDELETE /v1/holidays/{id}Delete a holiday
holidays syncPOST /v1/holidays/syncImport national holidays

Examples​

--params carries query and path parameters (id, page, filters); --json carries the request body; --fields limits which fields come back — worth using on every list/get to save context. See Global flags for the full reference.

# List holidays
kobana billing holidays list \
--params '{"year": 2026}' \
--fields "id,date,name,type,source"

# Import national holidays
kobana billing holidays sync --json '{"years": [2026, 2027]}'

# Create a holiday
kobana billing holidays create \
--json '{"date": "2026-07-09", "name": "Revolução Constitucionalista", "type": "state"}'

# Update a holiday
kobana billing holidays update \
--params '{"id": "HOLIDAY_ID"}' \
--json '{"notes": "São Paulo"}'

# Delete a holiday
kobana billing holidays delete \
--params '{"id": "HOLIDAY_ID"}' \
--dry-run

Next steps​