Update an existing monitor group

Update the attributes of an existing monitor group. Send only the parameters you wish to change (e.g. name).

PATCH https://betteruptime.com/api/v2/monitor-groups/{monitor_group_id}

URL parameters

monitor_group_id
required string

Headers

Authorization
required string
Content_Type
string

Body parameters

paused
boolean
name
string
sort_index
integer
200

Response body

{
  "data": {
    "id": "95251342",
    "type": "monitor_group",
    "attributes": {
      "name": "Backend services 2",
      "sort_index": null,
      "created_at": "2020-10-03T20:20:43.547Z",
      "updated_at": "2020-10-03T20:20:43.547Z",
      "paused": true
    }
  }
}

Example cURL

curl --request PATCH \
  --url https://betteruptime.com/api/v2/monitor-groups/95251342 \
  --header 'Authorization: Bearer YOUR_API_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "Backend services 2"
}'
Copied!