operators

Create operator holiday

post/api/operators/holidays

Request body

operator_idstring uuid required

Operator UUID

start_datestring date-time required

Start date and time of the holiday period (inclusive)

end_datestring date-time required

End date and time of the holiday period (inclusive)

Response

Successful Response

idstring uuid required

Holiday UUID

operator_idstring uuid required

Operator UUID

start_datestring date-time required

Start date and time of the holiday period (inclusive)

end_datestring date-time required

End date and time of the holiday period (inclusive)

created_atstring date-time required

Creation timestamp

updated_atstring date-time nullable

Last update timestamp

messagestring nullable

Human-readable alert sync outcome

operator_alert_actionstring nullable

Alert sync action: closed, created, or promoted

operator_alert_closedboolean

True when the holiday change closed the alert

invalidate_allboolean

True when the frontend must invalidate all local route data

site_restrictedboolean

True when the frontend must switch to restricted site mode

Example response

{
  "created_at": "2025-11-01T10:00:00+00:00",
  "end_date": "2025-12-27T23:59:59+00:00",
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "operator_id": "123e4567-e89b-12d3-a456-426614174001",
  "start_date": "2025-12-20T00:00:00+00:00",
  "updated_at": "2025-11-01T10:00:00+00:00"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.