Skip to content

Holiday

Fabian Steiner edited this page Nov 4, 2026 · 2 revisions

Holiday

from xurrent import Holiday · module xurrent.holidays · API resource /holidays · Xurrent API docs

A holiday: a period during which the calendars it is linked to are not active.

Back to the overview

Fields

The named arguments of the constructor. Every other field of the API response is set as an attribute as well.

Field Type Default Converted to
id int
name Optional[str] None
start_at None
end_at None
picture_uri Optional[str] None

Class methods

get_by_id

Holiday.get_by_id(connection_object: XurrentApiHelper, id: int) -> T

API: GET /holidays/{id}

get_holidays

Holiday.get_holidays(connection_object: XurrentApiHelper, queryfilter: dict = None) -> List[T]

API: GET /holidays

create

Holiday.create(connection_object: XurrentApiHelper, data: dict) -> T

API: POST /holidays

Methods

ref_str

holiday.ref_str() -> str

update

holiday.update(data: dict) -> T

API: PATCH /holidays/{id}

get_calendars

holiday.get_calendars() -> List

Retrieve calendars that contain this holiday.

API: GET /holidays/{id}/calendars · Uses: Calendar

Cross references

Uses:

Used by:

Clone this wiki locally