Explore documentation

Update an on-call calendar

Update an existing on-call calendar.

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

Headers

Authorization
required string

Body parameters

name
required string
200

Response body

{
  "id": "56",
  "type": "on_call_calendar",
  "attributes": {
    "name": "My New Calendar",
    "default_calendar": false,
    "team_name": "Backend Team"
  },
  "relationships": {
    "on_call_users": {
      "data": [

      ]
    }
  }
}
422

Response body

{
  "errors": {
    "name": [
      "can't be blank"
    ]
  }
}

Example cURL

Example
curl --request PATCH \
  --url https://uptime.betterstack.com/api/v2/on-calls/56 \
  --header "Authorization: Bearer $TOKEN"
  --data '{"name": "New name"}'