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",
    "history": false,
    "widget_type": "plain",
    "position": 0,
    "availability": 1.0,
    "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 $TEAM_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
    "resource_id": "112233",
    "resource_type": "Monitor",
    "public_name": "The best monitor",
    "explanation": "Hide easter eggs here",
    "history": false,
    "position": 0
}'