Reroute On-Call Page
https://navy.oncall.datadoghq.com/api/v2/on-call/pages/{page_id}/reroutehttps://teal.oncall.datadoghq.com/api/v2/on-call/pages/{page_id}/reroutehttps://coral.oncall.datadoghq.com/api/v2/on-call/pages/{page_id}/reroutehttps://beige.oncall.datadoghq.eu/api/v2/on-call/pages/{page_id}/reroutehttps://saffron.oncall.datadoghq.com/api/v2/on-call/pages/{page_id}/reroutehttps://lava.oncall.datadoghq.com/api/v2/on-call/pages/{page_id}/reroutehttps://scarlet.oncall.datadoghq.com/api/v2/on-call/pages/{page_id}/reroutehttps://navy.oncall.datadoghq.com/api/v2/on-call/pages/{page_id}/reroutehttps://navy.oncall.datadoghq.com/api/v2/on-call/pages/{page_id}/rerouteOverview
Reroutes an On-Call Page.
Arguments
Path Parameters
page_id [required]The page ID.
Request
Body Data (required)
data [required]The data for rerouting an On-Call Page, including attributes and resource type.
attributes [required]Details about where to reroute the On-Call Page.
commentAn optional comment explaining why the page is being rerouted.
target [required]Information about the target to notify (such as a team or user).
identifierIdentifier for the target (for example, team handle or user ID).
typeThe kind of target, team_id | team_handle | user_id.
team_id, team_handle, user_idtype [required]The type of resource used when rerouting an On-Call Page.
reroutereroute{
"data": {
"attributes": {
"comment": "Rerouting to the database team.",
"target": {
"identifier": "string",
"type": "team_id"
}
},
"type": "reroute"
}
}Response
No Content.
Bad Request
API error response.
errors [required]A list of errors.
detailA human-readable explanation specific to this occurrence of the error.
metaNon-standard meta-information about the error
sourceReferences to the source of the error.
headerA string indicating the name of a single request header which caused the error.
parameterA string indicating which URI query parameter caused the error.
pointerA JSON pointer to the value in the request document that caused the error.
statusStatus code of the response.
titleShort human-readable summary of the error.
{
"errors": [
{
"detail": "Missing required attribute in body",
"meta": {},
"source": {
"header": "Authorization",
"parameter": "limit",
"pointer": "/data/attributes/title"
},
"status": "400",
"title": "Bad Request"
}
]
}Unauthorized
API error response.
errors [required]A list of errors.
detailA human-readable explanation specific to this occurrence of the error.
metaNon-standard meta-information about the error
sourceReferences to the source of the error.
headerA string indicating the name of a single request header which caused the error.
parameterA string indicating which URI query parameter caused the error.
pointerA JSON pointer to the value in the request document that caused the error.
statusStatus code of the response.
titleShort human-readable summary of the error.
{
"errors": [
{
"detail": "Missing required attribute in body",
"meta": {},
"source": {
"header": "Authorization",
"parameter": "limit",
"pointer": "/data/attributes/title"
},
"status": "400",
"title": "Bad Request"
}
]
}Forbidden
API error response.
errors [required]A list of errors.
detailA human-readable explanation specific to this occurrence of the error.
metaNon-standard meta-information about the error
sourceReferences to the source of the error.
headerA string indicating the name of a single request header which caused the error.
parameterA string indicating which URI query parameter caused the error.
pointerA JSON pointer to the value in the request document that caused the error.
statusStatus code of the response.
titleShort human-readable summary of the error.
{
"errors": [
{
"detail": "Missing required attribute in body",
"meta": {},
"source": {
"header": "Authorization",
"parameter": "limit",
"pointer": "/data/attributes/title"
},
"status": "400",
"title": "Bad Request"
}
]
}Too many requests
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}Code Example
# Path parameters
export page_id="15e74b8b-f865-48d0-bcc5-453323ed2c8f"
# Set your Datadog credentials
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X POST "https://navy.oncall.datadoghq.com/api/v2/on-call/pages/${page_id}/reroute" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"comment": "Rerouting to the database team.",
"target": {
"identifier": "my-team",
"type": "team_handle"
}
},
"type": "reroute"
}
}
EOF# Path parameters
export page_id="15e74b8b-f865-48d0-bcc5-453323ed2c8f"
# Set your Datadog credentials
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X POST "https://teal.oncall.datadoghq.com/api/v2/on-call/pages/${page_id}/reroute" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"comment": "Rerouting to the database team.",
"target": {
"identifier": "my-team",
"type": "team_handle"
}
},
"type": "reroute"
}
}
EOF# Path parameters
export page_id="15e74b8b-f865-48d0-bcc5-453323ed2c8f"
# Set your Datadog credentials
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X POST "https://coral.oncall.datadoghq.com/api/v2/on-call/pages/${page_id}/reroute" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"comment": "Rerouting to the database team.",
"target": {
"identifier": "my-team",
"type": "team_handle"
}
},
"type": "reroute"
}
}
EOF# Path parameters
export page_id="15e74b8b-f865-48d0-bcc5-453323ed2c8f"
# Set your Datadog credentials
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X POST "https://beige.oncall.datadoghq.eu/api/v2/on-call/pages/${page_id}/reroute" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"comment": "Rerouting to the database team.",
"target": {
"identifier": "my-team",
"type": "team_handle"
}
},
"type": "reroute"
}
}
EOF# Path parameters
export page_id="15e74b8b-f865-48d0-bcc5-453323ed2c8f"
# Set your Datadog credentials
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X POST "https://saffron.oncall.datadoghq.com/api/v2/on-call/pages/${page_id}/reroute" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"comment": "Rerouting to the database team.",
"target": {
"identifier": "my-team",
"type": "team_handle"
}
},
"type": "reroute"
}
}
EOF# Path parameters
export page_id="15e74b8b-f865-48d0-bcc5-453323ed2c8f"
# Set your Datadog credentials
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X POST "https://lava.oncall.datadoghq.com/api/v2/on-call/pages/${page_id}/reroute" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"comment": "Rerouting to the database team.",
"target": {
"identifier": "my-team",
"type": "team_handle"
}
},
"type": "reroute"
}
}
EOF# Path parameters
export page_id="15e74b8b-f865-48d0-bcc5-453323ed2c8f"
# Set your Datadog credentials
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X POST "https://scarlet.oncall.datadoghq.com/api/v2/on-call/pages/${page_id}/reroute" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"comment": "Rerouting to the database team.",
"target": {
"identifier": "my-team",
"type": "team_handle"
}
},
"type": "reroute"
}
}
EOF# Path parameters
export page_id="15e74b8b-f865-48d0-bcc5-453323ed2c8f"
# Set your Datadog credentials
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X POST "https://navy.oncall.datadoghq.com/api/v2/on-call/pages/${page_id}/reroute" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"comment": "Rerouting to the database team.",
"target": {
"identifier": "my-team",
"type": "team_handle"
}
},
"type": "reroute"
}
}
EOF# Path parameters
export page_id="15e74b8b-f865-48d0-bcc5-453323ed2c8f"
# Set your Datadog credentials
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X POST "https://navy.oncall.datadoghq.com/api/v2/on-call/pages/${page_id}/reroute" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"comment": "Rerouting to the database team.",
"target": {
"identifier": "my-team",
"type": "team_handle"
}
},
"type": "reroute"
}
}
EOF