Create a page from an incident
https://api.datadoghq.com/api/v2/incidents/{incident_id}/cases/pagehttps://api.us3.datadoghq.com/api/v2/incidents/{incident_id}/cases/pagehttps://api.us5.datadoghq.com/api/v2/incidents/{incident_id}/cases/pagehttps://api.datadoghq.eu/api/v2/incidents/{incident_id}/cases/pagehttps://api.ap1.datadoghq.com/api/v2/incidents/{incident_id}/cases/pagehttps://api.ap2.datadoghq.com/api/v2/incidents/{incident_id}/cases/pagehttps://api.uk1.datadoghq.com/api/v2/incidents/{incident_id}/cases/pagehttps://api.ddog-gov.com/api/v2/incidents/{incident_id}/cases/pagehttps://api.us2.ddog-gov.com/api/v2/incidents/{incident_id}/cases/pagePrésentation
Create a page from an incident using the Cases service.
Deprecated: This endpoint is deprecated. Use Create an on-call page from an incident instead.
OAuth apps require the incident_write authorization scope to access this endpoint.
Arguments
Paramètres du chemin
incident_id [required]The UUID of the incident.
Requête
Body Data (required)
Page creation payload.
data [required]Page data in a create request.
attributes [required]Attributes for creating a page from an incident.
descriptionThe description of the page.
incident_public_idThe public ID of the incident.
roleA reference to an incident role for a page.
id [required]The role identifier.
type [required]The type of incident role for a page.
incident_user_defined_roles, incident_reserved_rolesservicesList of affected services.
tagsList of tags for the page.
targetThe target recipient for a page.
identifier [required]The identifier of the target (handle, UUID, or user UUID).
type [required]The type of target for a page request.
team_handle, team_uuid, user_uuidtitleThe title of the page.
type [required]Resource type for a page creation request.
page{
"data": {
"attributes": {
"description": "A critical incident affecting production systems.",
"incident_public_id": "12345",
"role": {
"id": "00000000-0000-0000-0000-000000000000",
"type": "incident_user_defined_roles"
},
"services": [
"web-store",
"checkout"
],
"tags": [
"env:prod"
],
"target": {
"identifier": "my-team-handle",
"type": "team_uuid"
},
"title": "Production outage - SEV-1"
},
"type": "page"
}
}Réponse
OK
Response with a page UUID.
data [required]Page UUID data in a response.
id [required]The UUID of the created page.
type [required]Resource type for a page UUID response.
page_uuid{
"data": {
"id": "00000000-0000-0000-0000-000000000001",
"type": "page_uuid"
}
}Bad Request
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}Unauthorized
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}Forbidden
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}Not Found
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}Too many requests
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}Exemple de code
# Path parameters
export incident_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/incidents/${incident_id}/cases/page" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"description": "A critical incident affecting production systems.",
"services": [
"web-store"
],
"tags": [
"env:prod"
],
"target": {
"identifier": "my-oncall-team",
"type": "team_handle"
},
"title": "Production outage - SEV-1"
},
"type": "page"
}
}
EOF# Path parameters
export incident_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/incidents/${incident_id}/cases/page" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"description": "A critical incident affecting production systems.",
"services": [
"web-store"
],
"tags": [
"env:prod"
],
"target": {
"identifier": "my-oncall-team",
"type": "team_handle"
},
"title": "Production outage - SEV-1"
},
"type": "page"
}
}
EOF# Path parameters
export incident_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/incidents/${incident_id}/cases/page" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"description": "A critical incident affecting production systems.",
"services": [
"web-store"
],
"tags": [
"env:prod"
],
"target": {
"identifier": "my-oncall-team",
"type": "team_handle"
},
"title": "Production outage - SEV-1"
},
"type": "page"
}
}
EOF# Path parameters
export incident_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/incidents/${incident_id}/cases/page" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"description": "A critical incident affecting production systems.",
"services": [
"web-store"
],
"tags": [
"env:prod"
],
"target": {
"identifier": "my-oncall-team",
"type": "team_handle"
},
"title": "Production outage - SEV-1"
},
"type": "page"
}
}
EOF# Path parameters
export incident_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/incidents/${incident_id}/cases/page" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"description": "A critical incident affecting production systems.",
"services": [
"web-store"
],
"tags": [
"env:prod"
],
"target": {
"identifier": "my-oncall-team",
"type": "team_handle"
},
"title": "Production outage - SEV-1"
},
"type": "page"
}
}
EOF# Path parameters
export incident_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/incidents/${incident_id}/cases/page" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"description": "A critical incident affecting production systems.",
"services": [
"web-store"
],
"tags": [
"env:prod"
],
"target": {
"identifier": "my-oncall-team",
"type": "team_handle"
},
"title": "Production outage - SEV-1"
},
"type": "page"
}
}
EOF# Path parameters
export incident_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/incidents/${incident_id}/cases/page" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"description": "A critical incident affecting production systems.",
"services": [
"web-store"
],
"tags": [
"env:prod"
],
"target": {
"identifier": "my-oncall-team",
"type": "team_handle"
},
"title": "Production outage - SEV-1"
},
"type": "page"
}
}
EOF# Path parameters
export incident_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/incidents/${incident_id}/cases/page" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"description": "A critical incident affecting production systems.",
"services": [
"web-store"
],
"tags": [
"env:prod"
],
"target": {
"identifier": "my-oncall-team",
"type": "team_handle"
},
"title": "Production outage - SEV-1"
},
"type": "page"
}
}
EOF# Path parameters
export incident_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/incidents/${incident_id}/cases/page" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"description": "A critical incident affecting production systems.",
"services": [
"web-store"
],
"tags": [
"env:prod"
],
"target": {
"identifier": "my-oncall-team",
"type": "team_handle"
},
"title": "Production outage - SEV-1"
},
"type": "page"
}
}
EOF