For AI agents: A markdown version of this page is available at https://dnd37xeb23o8n.cloudfront.net/stefon.simmons/docs-astro-web-10435/api/latest/status-pages/create-backfilled-degradation.md. A documentation index is available at /llms.txt.
Language
Datadog site

Create backfilled degradation

POSThttps://api.datadoghq.com/api/v2/statuspages/{page_id}/degradations/backfillhttps://api.us3.datadoghq.com/api/v2/statuspages/{page_id}/degradations/backfillhttps://api.us5.datadoghq.com/api/v2/statuspages/{page_id}/degradations/backfillhttps://api.datadoghq.eu/api/v2/statuspages/{page_id}/degradations/backfillhttps://api.ap1.datadoghq.com/api/v2/statuspages/{page_id}/degradations/backfillhttps://api.ap2.datadoghq.com/api/v2/statuspages/{page_id}/degradations/backfillhttps://api.uk1.datadoghq.com/api/v2/statuspages/{page_id}/degradations/backfillhttps://api.ddog-gov.com/api/v2/statuspages/{page_id}/degradations/backfillhttps://api.us2.ddog-gov.com/api/v2/statuspages/{page_id}/degradations/backfill

Overview

Creates a backfilled degradation with predefined updates.

This endpoint requires the status_pages_incident_write permission.

OAuth apps require the status_pages_incident_write authorization scope to access this endpoint.

Arguments

Path Parameters

Name
Type
Description
page_id [required]
string

The ID of the status page.

Query Strings

Name
Type
Description
include
string

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

Request

Body Data (required)

Field
Type
Description
data
object

The data object for creating a backfilled degradation.

Response

Created

Response object for a single degradation.

Field
Type
Description
data
object

The data object for a degradation.

included
[<oneOf>]

The included related resources of a degradation. Client must explicitly request these resources by name in the include query parameter.

Code Example

Create backfilled degradation returns "Created" response
# Path parameters
export page_id="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X POST "https://api.${DD_SITE}/api/v2/statuspages/${page_id}/degradations/backfill" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "title": "Past API Outage",
      "updates": [
        {
          "components_affected": [
            {
              "id": "4e9d3726-bdd7-0079-613c-e9aaba89eb01",
              "status": "degraded"
            }
          ],
          "description": "We detected elevated error rates in the API.",
          "started_at": "2021-11-11T10:11:11+00:00",
          "status": "investigating"
        },
        {
          "components_affected": [
            {
              "id": "4e9d3726-bdd7-0079-613c-e9aaba89eb01",
              "status": "degraded"
            }
          ],
          "description": "Root cause identified as a misconfigured deployment.",
          "started_at": "2021-11-11T10:41:11+00:00",
          "status": "identified"
        },
        {
          "components_affected": [
            {
              "id": "4e9d3726-bdd7-0079-613c-e9aaba89eb01",
              "status": "operational"
            }
          ],
          "description": "The issue has been resolved and API is operating normally.",
          "started_at": "2021-11-11T11:11:11+00:00",
          "status": "resolved"
        }
      ]
    },
    "type": "degradations"
  }
}
EOF
# Path parameters
export page_id="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="us3.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X POST "https://api.${DD_SITE}/api/v2/statuspages/${page_id}/degradations/backfill" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "title": "Past API Outage",
      "updates": [
        {
          "components_affected": [
            {
              "id": "4e9d3726-bdd7-0079-613c-e9aaba89eb01",
              "status": "degraded"
            }
          ],
          "description": "We detected elevated error rates in the API.",
          "started_at": "2021-11-11T10:11:11+00:00",
          "status": "investigating"
        },
        {
          "components_affected": [
            {
              "id": "4e9d3726-bdd7-0079-613c-e9aaba89eb01",
              "status": "degraded"
            }
          ],
          "description": "Root cause identified as a misconfigured deployment.",
          "started_at": "2021-11-11T10:41:11+00:00",
          "status": "identified"
        },
        {
          "components_affected": [
            {
              "id": "4e9d3726-bdd7-0079-613c-e9aaba89eb01",
              "status": "operational"
            }
          ],
          "description": "The issue has been resolved and API is operating normally.",
          "started_at": "2021-11-11T11:11:11+00:00",
          "status": "resolved"
        }
      ]
    },
    "type": "degradations"
  }
}
EOF
# Path parameters
export page_id="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="us5.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X POST "https://api.${DD_SITE}/api/v2/statuspages/${page_id}/degradations/backfill" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "title": "Past API Outage",
      "updates": [
        {
          "components_affected": [
            {
              "id": "4e9d3726-bdd7-0079-613c-e9aaba89eb01",
              "status": "degraded"
            }
          ],
          "description": "We detected elevated error rates in the API.",
          "started_at": "2021-11-11T10:11:11+00:00",
          "status": "investigating"
        },
        {
          "components_affected": [
            {
              "id": "4e9d3726-bdd7-0079-613c-e9aaba89eb01",
              "status": "degraded"
            }
          ],
          "description": "Root cause identified as a misconfigured deployment.",
          "started_at": "2021-11-11T10:41:11+00:00",
          "status": "identified"
        },
        {
          "components_affected": [
            {
              "id": "4e9d3726-bdd7-0079-613c-e9aaba89eb01",
              "status": "operational"
            }
          ],
          "description": "The issue has been resolved and API is operating normally.",
          "started_at": "2021-11-11T11:11:11+00:00",
          "status": "resolved"
        }
      ]
    },
    "type": "degradations"
  }
}
EOF
# Path parameters
export page_id="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="datadoghq.eu"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X POST "https://api.${DD_SITE}/api/v2/statuspages/${page_id}/degradations/backfill" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "title": "Past API Outage",
      "updates": [
        {
          "components_affected": [
            {
              "id": "4e9d3726-bdd7-0079-613c-e9aaba89eb01",
              "status": "degraded"
            }
          ],
          "description": "We detected elevated error rates in the API.",
          "started_at": "2021-11-11T10:11:11+00:00",
          "status": "investigating"
        },
        {
          "components_affected": [
            {
              "id": "4e9d3726-bdd7-0079-613c-e9aaba89eb01",
              "status": "degraded"
            }
          ],
          "description": "Root cause identified as a misconfigured deployment.",
          "started_at": "2021-11-11T10:41:11+00:00",
          "status": "identified"
        },
        {
          "components_affected": [
            {
              "id": "4e9d3726-bdd7-0079-613c-e9aaba89eb01",
              "status": "operational"
            }
          ],
          "description": "The issue has been resolved and API is operating normally.",
          "started_at": "2021-11-11T11:11:11+00:00",
          "status": "resolved"
        }
      ]
    },
    "type": "degradations"
  }
}
EOF
# Path parameters
export page_id="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="ap1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X POST "https://api.${DD_SITE}/api/v2/statuspages/${page_id}/degradations/backfill" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "title": "Past API Outage",
      "updates": [
        {
          "components_affected": [
            {
              "id": "4e9d3726-bdd7-0079-613c-e9aaba89eb01",
              "status": "degraded"
            }
          ],
          "description": "We detected elevated error rates in the API.",
          "started_at": "2021-11-11T10:11:11+00:00",
          "status": "investigating"
        },
        {
          "components_affected": [
            {
              "id": "4e9d3726-bdd7-0079-613c-e9aaba89eb01",
              "status": "degraded"
            }
          ],
          "description": "Root cause identified as a misconfigured deployment.",
          "started_at": "2021-11-11T10:41:11+00:00",
          "status": "identified"
        },
        {
          "components_affected": [
            {
              "id": "4e9d3726-bdd7-0079-613c-e9aaba89eb01",
              "status": "operational"
            }
          ],
          "description": "The issue has been resolved and API is operating normally.",
          "started_at": "2021-11-11T11:11:11+00:00",
          "status": "resolved"
        }
      ]
    },
    "type": "degradations"
  }
}
EOF
# Path parameters
export page_id="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="ap2.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X POST "https://api.${DD_SITE}/api/v2/statuspages/${page_id}/degradations/backfill" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "title": "Past API Outage",
      "updates": [
        {
          "components_affected": [
            {
              "id": "4e9d3726-bdd7-0079-613c-e9aaba89eb01",
              "status": "degraded"
            }
          ],
          "description": "We detected elevated error rates in the API.",
          "started_at": "2021-11-11T10:11:11+00:00",
          "status": "investigating"
        },
        {
          "components_affected": [
            {
              "id": "4e9d3726-bdd7-0079-613c-e9aaba89eb01",
              "status": "degraded"
            }
          ],
          "description": "Root cause identified as a misconfigured deployment.",
          "started_at": "2021-11-11T10:41:11+00:00",
          "status": "identified"
        },
        {
          "components_affected": [
            {
              "id": "4e9d3726-bdd7-0079-613c-e9aaba89eb01",
              "status": "operational"
            }
          ],
          "description": "The issue has been resolved and API is operating normally.",
          "started_at": "2021-11-11T11:11:11+00:00",
          "status": "resolved"
        }
      ]
    },
    "type": "degradations"
  }
}
EOF
# Path parameters
export page_id="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="uk1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X POST "https://api.${DD_SITE}/api/v2/statuspages/${page_id}/degradations/backfill" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "title": "Past API Outage",
      "updates": [
        {
          "components_affected": [
            {
              "id": "4e9d3726-bdd7-0079-613c-e9aaba89eb01",
              "status": "degraded"
            }
          ],
          "description": "We detected elevated error rates in the API.",
          "started_at": "2021-11-11T10:11:11+00:00",
          "status": "investigating"
        },
        {
          "components_affected": [
            {
              "id": "4e9d3726-bdd7-0079-613c-e9aaba89eb01",
              "status": "degraded"
            }
          ],
          "description": "Root cause identified as a misconfigured deployment.",
          "started_at": "2021-11-11T10:41:11+00:00",
          "status": "identified"
        },
        {
          "components_affected": [
            {
              "id": "4e9d3726-bdd7-0079-613c-e9aaba89eb01",
              "status": "operational"
            }
          ],
          "description": "The issue has been resolved and API is operating normally.",
          "started_at": "2021-11-11T11:11:11+00:00",
          "status": "resolved"
        }
      ]
    },
    "type": "degradations"
  }
}
EOF
# Path parameters
export page_id="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X POST "https://api.${DD_SITE}/api/v2/statuspages/${page_id}/degradations/backfill" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "title": "Past API Outage",
      "updates": [
        {
          "components_affected": [
            {
              "id": "4e9d3726-bdd7-0079-613c-e9aaba89eb01",
              "status": "degraded"
            }
          ],
          "description": "We detected elevated error rates in the API.",
          "started_at": "2021-11-11T10:11:11+00:00",
          "status": "investigating"
        },
        {
          "components_affected": [
            {
              "id": "4e9d3726-bdd7-0079-613c-e9aaba89eb01",
              "status": "degraded"
            }
          ],
          "description": "Root cause identified as a misconfigured deployment.",
          "started_at": "2021-11-11T10:41:11+00:00",
          "status": "identified"
        },
        {
          "components_affected": [
            {
              "id": "4e9d3726-bdd7-0079-613c-e9aaba89eb01",
              "status": "operational"
            }
          ],
          "description": "The issue has been resolved and API is operating normally.",
          "started_at": "2021-11-11T11:11:11+00:00",
          "status": "resolved"
        }
      ]
    },
    "type": "degradations"
  }
}
EOF
# Path parameters
export page_id="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="us2.ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X POST "https://api.${DD_SITE}/api/v2/statuspages/${page_id}/degradations/backfill" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "title": "Past API Outage",
      "updates": [
        {
          "components_affected": [
            {
              "id": "4e9d3726-bdd7-0079-613c-e9aaba89eb01",
              "status": "degraded"
            }
          ],
          "description": "We detected elevated error rates in the API.",
          "started_at": "2021-11-11T10:11:11+00:00",
          "status": "investigating"
        },
        {
          "components_affected": [
            {
              "id": "4e9d3726-bdd7-0079-613c-e9aaba89eb01",
              "status": "degraded"
            }
          ],
          "description": "Root cause identified as a misconfigured deployment.",
          "started_at": "2021-11-11T10:41:11+00:00",
          "status": "identified"
        },
        {
          "components_affected": [
            {
              "id": "4e9d3726-bdd7-0079-613c-e9aaba89eb01",
              "status": "operational"
            }
          ],
          "description": "The issue has been resolved and API is operating normally.",
          "started_at": "2021-11-11T11:11:11+00:00",
          "status": "resolved"
        }
      ]
    },
    "type": "degradations"
  }
}
EOF