Explore documentation

Update an on-call calendar event

Update a single event in the given on-call calendar.

PATCH https://uptime.betterstack.com/api/v2/on-calls/{calendar_id}/events/{event_id}

URL parameters

calendar_id
required string
event_id
required string

Headers

Authorization
required string

Body parameters

starts_at
date
ends_at
date
users
array
200

Response body

{
  "id": 12345678,
  "starts_at": "2025-01-01T09:45:00Z",
  "ends_at": "2025-01-01T17:00:00",
  "users": [
    "[email protected]"
  ]
}
422

Response body

{
  "errors": {
    "base": [
      "events ending before today at 00:00 UTC can't be updated or deleted"
    ]
  }
}

Example cURL

Example
curl --request PUT \
  --url "https://uptime.betterstack.com/api/v2/on-calls/default/events/12345678" \
  --header "Authorization: Bearer $TOKEN" \
  --header "Content-Type: application/json" \
  --data '{"starts_at":"2025-01-01T09:45:00Z"}'