For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/es/api/latest/rum-teams-ownership/create-a-teams-ownership-mapping.md. A documentation index is available at /llms.txt.
Language
Datadog site

Create a teams ownership mapping

ADVERTENCIANote: This endpoint is in Preview and is subject to change. If you have any feedback, contact Datadog support.
POSThttps://api.datadoghq.com/api/v2/rum/config/teams-ownership/mappingshttps://api.us3.datadoghq.com/api/v2/rum/config/teams-ownership/mappingshttps://api.us5.datadoghq.com/api/v2/rum/config/teams-ownership/mappingshttps://api.datadoghq.eu/api/v2/rum/config/teams-ownership/mappingshttps://api.ap1.datadoghq.com/api/v2/rum/config/teams-ownership/mappingshttps://api.ap2.datadoghq.com/api/v2/rum/config/teams-ownership/mappingshttps://api.uk1.datadoghq.com/api/v2/rum/config/teams-ownership/mappingshttps://api.ddog-gov.com/api/v2/rum/config/teams-ownership/mappingshttps://api.us2.ddog-gov.com/api/v2/rum/config/teams-ownership/mappings

Descripción general

Create a teams ownership mapping for your organization. Returns the teams ownership mapping object from the request body when the request is successful.

This endpoint requires the rum_apps_write permission.

Solicitud

Body Data (required)

The definition of the teams ownership mapping to create.

Campo
Type
Descripción
data [required]
object

The JSON:API data envelope for a teams ownership mapping create request.

Respuesta

Created

The response body for a single teams ownership mapping.

Campo
Type
Descripción
data [required]
object

The JSON:API data envelope for a teams ownership mapping.

Ejemplo de código

Create a teams ownership mapping
# 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/rum/config/teams-ownership/mappings" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "application_id": "11111111-2222-3333-4444-555555555555",
      "match_type": "exact",
      "service": "web-checkout",
      "team_handle": "team-rum",
      "view_name": "/checkout"
    },
    "type": "teams_ownership_mappings"
  }
}
EOF
# 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/rum/config/teams-ownership/mappings" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "application_id": "11111111-2222-3333-4444-555555555555",
      "match_type": "exact",
      "service": "web-checkout",
      "team_handle": "team-rum",
      "view_name": "/checkout"
    },
    "type": "teams_ownership_mappings"
  }
}
EOF
# 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/rum/config/teams-ownership/mappings" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "application_id": "11111111-2222-3333-4444-555555555555",
      "match_type": "exact",
      "service": "web-checkout",
      "team_handle": "team-rum",
      "view_name": "/checkout"
    },
    "type": "teams_ownership_mappings"
  }
}
EOF
# 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/rum/config/teams-ownership/mappings" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "application_id": "11111111-2222-3333-4444-555555555555",
      "match_type": "exact",
      "service": "web-checkout",
      "team_handle": "team-rum",
      "view_name": "/checkout"
    },
    "type": "teams_ownership_mappings"
  }
}
EOF
# 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/rum/config/teams-ownership/mappings" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "application_id": "11111111-2222-3333-4444-555555555555",
      "match_type": "exact",
      "service": "web-checkout",
      "team_handle": "team-rum",
      "view_name": "/checkout"
    },
    "type": "teams_ownership_mappings"
  }
}
EOF
# 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/rum/config/teams-ownership/mappings" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "application_id": "11111111-2222-3333-4444-555555555555",
      "match_type": "exact",
      "service": "web-checkout",
      "team_handle": "team-rum",
      "view_name": "/checkout"
    },
    "type": "teams_ownership_mappings"
  }
}
EOF
# 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/rum/config/teams-ownership/mappings" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "application_id": "11111111-2222-3333-4444-555555555555",
      "match_type": "exact",
      "service": "web-checkout",
      "team_handle": "team-rum",
      "view_name": "/checkout"
    },
    "type": "teams_ownership_mappings"
  }
}
EOF
# 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/rum/config/teams-ownership/mappings" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "application_id": "11111111-2222-3333-4444-555555555555",
      "match_type": "exact",
      "service": "web-checkout",
      "team_handle": "team-rum",
      "view_name": "/checkout"
    },
    "type": "teams_ownership_mappings"
  }
}
EOF
# 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/rum/config/teams-ownership/mappings" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "application_id": "11111111-2222-3333-4444-555555555555",
      "match_type": "exact",
      "service": "web-checkout",
      "team_handle": "team-rum",
      "view_name": "/checkout"
    },
    "type": "teams_ownership_mappings"
  }
}
EOF