For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/api/latest/on-call-paging/reroute-on-call-page.md. A documentation index is available at /llms.txt.
Language
Datadog site

Reroute On-Call Page

POSThttps://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}/reroute

Overview

Reroutes an On-Call Page.

Arguments

Path Parameters

Name
Type
Description
page_id [required]
string

The page ID.

Request

Body Data (required)

Field
Type
Description
data [required]
object

The data for rerouting an On-Call Page, including attributes and resource type.

Response

No Content.

Code Example

Reroute On-Call Page
# 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