For AI agents: A markdown version of this page is available at https://dnd37xeb23o8n.cloudfront.net/stefon.simmons/docs-astro-web-10435/es/api/latest/rum-teams-ownership/bulk-create-and-remove-teams-ownership-mappings.md. A documentation index is available at /llms.txt.
Language
Datadog site

Bulk create and remove teams ownership mappings

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/mappings/operationshttps://api.us3.datadoghq.com/api/v2/rum/config/teams-ownership/mappings/operationshttps://api.us5.datadoghq.com/api/v2/rum/config/teams-ownership/mappings/operationshttps://api.datadoghq.eu/api/v2/rum/config/teams-ownership/mappings/operationshttps://api.ap1.datadoghq.com/api/v2/rum/config/teams-ownership/mappings/operationshttps://api.ap2.datadoghq.com/api/v2/rum/config/teams-ownership/mappings/operationshttps://api.uk1.datadoghq.com/api/v2/rum/config/teams-ownership/mappings/operationshttps://api.ddog-gov.com/api/v2/rum/config/teams-ownership/mappings/operationshttps://api.us2.ddog-gov.com/api/v2/rum/config/teams-ownership/mappings/operations

Descripción general

Add and remove teams ownership mappings for your organization in a single atomic request, following the JSON:API atomic operations extension. Operations are applied together: if any operation is invalid, none of the operations are applied. Add operations are processed before remove operations, so results may not appear in the same order as the request.

Solicitud

Body Data (required)

The list of add and remove operations to apply atomically.

Campo
Type
Descripción
atomic:operations [required]
[object]

The list of add and remove operations to apply atomically.

Respuesta

OK

The response body for the bulk create and remove operation. On success, atomic:results contains one entry per operation. Add results appear before remove results and may not match request order. Correlate add results by their type and id rather than by array position. On failure, no operations were applied and errors describes what went wrong.

Campo
Type
Descripción
atomic:results
[object]

The result of each operation. Add operations are processed first, then remove operations, so results may not appear in the same order as the request. Present only on success.

errors
[object]

The validation or processing errors encountered. Present only when the request could not be completed.

Ejemplo de código

# 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/operations" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "atomic:operations": [
    {
      "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"
      },
      "op": "add"
    },
    {
      "op": "remove",
      "ref": {
        "id": "456",
        "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/operations" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "atomic:operations": [
    {
      "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"
      },
      "op": "add"
    },
    {
      "op": "remove",
      "ref": {
        "id": "456",
        "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/operations" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "atomic:operations": [
    {
      "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"
      },
      "op": "add"
    },
    {
      "op": "remove",
      "ref": {
        "id": "456",
        "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/operations" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "atomic:operations": [
    {
      "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"
      },
      "op": "add"
    },
    {
      "op": "remove",
      "ref": {
        "id": "456",
        "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/operations" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "atomic:operations": [
    {
      "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"
      },
      "op": "add"
    },
    {
      "op": "remove",
      "ref": {
        "id": "456",
        "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/operations" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "atomic:operations": [
    {
      "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"
      },
      "op": "add"
    },
    {
      "op": "remove",
      "ref": {
        "id": "456",
        "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/operations" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "atomic:operations": [
    {
      "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"
      },
      "op": "add"
    },
    {
      "op": "remove",
      "ref": {
        "id": "456",
        "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/operations" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "atomic:operations": [
    {
      "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"
      },
      "op": "add"
    },
    {
      "op": "remove",
      "ref": {
        "id": "456",
        "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/operations" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "atomic:operations": [
    {
      "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"
      },
      "op": "add"
    },
    {
      "op": "remove",
      "ref": {
        "id": "456",
        "type": "teams_ownership_mappings"
      }
    }
  ]
}
EOF