{
  "opencollection": "1.0.0",
  "info": {
    "name": "Datadog Account Retention API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "DD-API-KEY",
      "value": "{{DD-API-KEY}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Retention",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Datadog List All Apm Retention Filters",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/apm/config/retention-filters"
          },
          "docs": "Get the list of APM retention filters."
        },
        {
          "info": {
            "name": "Datadog Create a Retention Filter",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{subdomain}.{site}/api/v2/apm/config/retention-filters",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a retention filter to index spans in your organization.\nReturns the retention filter definition when the request is successful.\n\nDefault filters with types spans-errors-sampling-processor and spans-appsec-sampling-processor cannot be created."
        },
        {
          "info": {
            "name": "Datadog Re-order Retention Filters",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{subdomain}.{site}/api/v2/apm/config/retention-filters-execution-order",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Re-order the execution order of retention filters."
        },
        {
          "info": {
            "name": "Datadog Get a Given Apm Retention Filter",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/apm/config/retention-filters/:filter_id",
            "params": [
              {
                "name": "filter_id",
                "value": "",
                "type": "path",
                "description": "The ID of the retention filter."
              }
            ]
          },
          "docs": "Get an APM retention filter."
        },
        {
          "info": {
            "name": "Datadog Update a Retention Filter",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{subdomain}.{site}/api/v2/apm/config/retention-filters/:filter_id",
            "params": [
              {
                "name": "filter_id",
                "value": "",
                "type": "path",
                "description": "The ID of the retention filter."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a retention filter from your organization.\n\nDefault filters (filters with types spans-errors-sampling-processor and spans-appsec-sampling-processor) cannot be renamed or removed."
        },
        {
          "info": {
            "name": "Datadog Delete a Retention Filter",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{subdomain}.{site}/api/v2/apm/config/retention-filters/:filter_id",
            "params": [
              {
                "name": "filter_id",
                "value": "",
                "type": "path",
                "description": "The ID of the retention filter."
              }
            ]
          },
          "docs": "Delete a specific retention filter from your organization.\n\nDefault filters with types spans-errors-sampling-processor and spans-appsec-sampling-processor cannot be deleted."
        },
        {
          "info": {
            "name": "Datadog Order Rum Retention Filters",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{subdomain}.{site}/api/v2/rum/applications/:app_id/relationships/retention_filters",
            "params": [
              {
                "name": "app_id",
                "value": "",
                "type": "path",
                "description": "RUM application ID."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Order RUM retention filters for a RUM application.\nReturns RUM retention filter objects without attributes from the request body when the request is successful."
        },
        {
          "info": {
            "name": "Datadog Get All Rum Retention Filters",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/rum/applications/:app_id/retention_filters",
            "params": [
              {
                "name": "app_id",
                "value": "",
                "type": "path",
                "description": "RUM application ID."
              }
            ]
          },
          "docs": "Get the list of RUM retention filters for a RUM application."
        },
        {
          "info": {
            "name": "Datadog Create a Rum Retention Filter",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{subdomain}.{site}/api/v2/rum/applications/:app_id/retention_filters",
            "params": [
              {
                "name": "app_id",
                "value": "",
                "type": "path",
                "description": "RUM application ID."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a RUM retention filter for a RUM application.\nReturns RUM retention filter objects from the request body when the request is successful."
        },
        {
          "info": {
            "name": "Datadog Get a Rum Retention Filter",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/rum/applications/:app_id/retention_filters/:rf_id",
            "params": [
              {
                "name": "app_id",
                "value": "",
                "type": "path",
                "description": "RUM application ID."
              },
              {
                "name": "rf_id",
                "value": "",
                "type": "path",
                "description": "Retention filter ID."
              }
            ]
          },
          "docs": "Get a RUM retention filter for a RUM application."
        },
        {
          "info": {
            "name": "Datadog Update a Rum Retention Filter",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{subdomain}.{site}/api/v2/rum/applications/:app_id/retention_filters/:rf_id",
            "params": [
              {
                "name": "app_id",
                "value": "",
                "type": "path",
                "description": "RUM application ID."
              },
              {
                "name": "rf_id",
                "value": "",
                "type": "path",
                "description": "Retention filter ID."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a RUM retention filter for a RUM application.\nReturns RUM retention filter objects from the request body when the request is successful."
        },
        {
          "info": {
            "name": "Datadog Delete a Rum Retention Filter",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{subdomain}.{site}/api/v2/rum/applications/:app_id/retention_filters/:rf_id",
            "params": [
              {
                "name": "app_id",
                "value": "",
                "type": "path",
                "description": "RUM application ID."
              },
              {
                "name": "rf_id",
                "value": "",
                "type": "path",
                "description": "Retention filter ID."
              }
            ]
          },
          "docs": "Delete a RUM retention filter for a RUM application."
        }
      ]
    }
  ],
  "bundled": true
}