Explore documentation

Update an existing status page resource

Update an existing status page resource. Send only the parameters you wish to change (e.g. public_name), and note that resource_id and resource_type should be sent together.

PATCH https://uptime.betterstack.com/api/v2/status-pages/{status_page_id}/resources/{resource_id}

URL parameters

status_page_id
required string
resource_id
required string

Headers

Authorization
required string
Content_Type
string

Body parameters

status_page_section_id
integer
widget_type
string
resource_id
string
resource_type
string
public_name
string
explanation
string
position
integer
200

Response body

{
  "id": "12345",
  "type": "resource",
  "attributes": {
    "resource_id": 112233,
    "resource_type": "Monitor",
    "public_name": "My great monitor, updated",
    "explanation": "Hide easter eggs here",
    "history": false,
    "widget_type": "plain",
    "position": 0,
    "availability": 1.0,
    "status": "operational",
    "status_history": [
      {
        "day": "2022-01-01",
        "status": "operational",
        "downtime_duration": 0
      }
    ]
  }
}

Example cURL

Example
curl --request PATCH \
  --url https://uptime.betterstack.com/api/v2/status-pages/123456789/resources/12345 \
  --header "Authorization: Bearer $TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
    "public_name": "My great monitor, updated"
}'