Status Pages

Create degradation template

Creates a new degradation template.

post/api/v2/statuspages/{page_id}/degradation_templates

Request

Path parameters

page_idstring uuid required

The ID of the status page.

Query parameters

includestring

Comma-separated list of resources to include. Supported values: created_by_user, last_modified_by_user, status_page.

Request body

Example request

{
  "data": {
    "attributes": {
      "components_affected": [
        {
          "status": "operational"
        }
      ],
      "updates": [
        {
          "status": "investigating"
        }
      ]
    },
    "type": "degradation_templates"
  }
}

Response

Created

Example response

{
  "data": {
    "attributes": {
      "components_affected": [
        {
          "status": "operational"
        }
      ],
      "updates": [
        {
          "status": "investigating"
        }
      ]
    },
    "relationships": {
      "created_by_user": {
        "data": {
          "type": "users"
        }
      },
      "last_modified_by_user": {
        "data": {
          "type": "users"
        }
      },
      "status_page": {
        "data": {
          "type": "status_pages"
        }
      }
    },
    "type": "degradation_templates"
  },
  "included": [
    {
      "type": "users"
    }
  ]
}

Changes

Changes to this operation have not been checked yet.