Explore documentation

Create a new status page resource

Returns a newly created status page resource.

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

URL parameters

status_page_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
201

Response body

{
  "id": "12345",
  "type": "resource",
  "attributes": {
    "resource_id": 112233,
    "resource_type": "Monitor",
    "public_name": "The best monitor",
    "explanation": "Hide easter eggs here",
    "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 POST \
  --url https://uptime.betterstack.com/api/v2/status-pages/123456789/resources \
  --header "Authorization: Bearer $TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
    "resource_id": "112233",
    "resource_type": "Monitor",
    "public_name": "The best monitor",
    "explanation": "Hide easter eggs here",
    "position": 0
}'