Update holiday mode

Turn a team member's holiday mode on until a time, or move the end of their current holiday.

PATCH https://incidents.betterstack.com/api/v3/holiday-mode

Headers

Authorization
required string
Content-Type
string

Body parameters

user_id
string
holiday_ends_at
required datetime
200

Response body

{
  "data": {
    "id": "u123",
    "type": "holiday_mode",
    "attributes": {
      "on_holiday": true,
      "holiday_ends_at": "2026-12-24T09:00:00Z"
    }
  }
}
401

Response body

{
  "errors": "Invalid Team API token. How to find your Team API token: https://betterstack.com/docs/uptime/api/getting-started-with-uptime-api/#get-an-incidents-api-token"
}
403

Response body

{
  "errors": "This API token is read-only and cannot be used for write operations."
}
422

Response body

{
  "errors": "`holiday_ends_at` must be in the future."
}

Response attributes

id
string
type
string
on_holiday
boolean
holiday_ends_at
datetime or null

Example cURL

Turn on holiday mode Turn on a team member's holiday mode
curl --request PATCH \
  --url https://incidents.betterstack.com/api/v3/holiday-mode \
  --header "Authorization: Bearer $TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "holiday_ends_at": "2026-12-24T09:00:00Z"
}'
curl --request PATCH \
  --url https://incidents.betterstack.com/api/v3/holiday-mode \
  --header "Authorization: Bearer $TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "user_id": "u123",
  "holiday_ends_at": "2026-12-24T09:00:00Z"
}'