{
  "opencollection": "1.0.0",
  "info": {
    "name": "Datadog Account Archive API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "DD-API-KEY",
      "value": "{{DD-API-KEY}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Archive",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Datadog Archive Case",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{subdomain}.{site}/api/v2/cases/:case_id/archive",
            "params": [
              {
                "name": "case_id",
                "value": "f98a5a5b-e0ff-45d4-b2f5-afe6e74de504",
                "type": "path",
                "description": "Case's UUID or key"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "DD-API-KEY",
              "value": "{{DD-API-KEY}}",
              "placement": "header"
            }
          },
          "docs": "Archive case"
        },
        {
          "info": {
            "name": "Datadog Get Archive Order",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/logs/config/archive-order"
          },
          "docs": "Get the current order of your archives.\nThis endpoint takes no JSON arguments."
        },
        {
          "info": {
            "name": "Datadog Update Archive Order",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{subdomain}.{site}/api/v2/logs/config/archive-order",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update the order of your archives. Since logs are processed sequentially, reordering an archive may change\nthe structure and content of the data processed by other archives.\n\n**Note**: Using the `PUT` method updates your archive's order by replacing the current order\nwith the new one."
        },
        {
          "info": {
            "name": "Datadog Create an Archive",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{subdomain}.{site}/api/v2/logs/config/archives",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create an archive in your organization."
        },
        {
          "info": {
            "name": "Datadog Get an Archive",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/logs/config/archives/:archive_id",
            "params": [
              {
                "name": "archive_id",
                "value": "",
                "type": "path",
                "description": "The ID of the archive."
              }
            ]
          },
          "docs": "Get a specific archive from your organization."
        },
        {
          "info": {
            "name": "Datadog Update an Archive",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{subdomain}.{site}/api/v2/logs/config/archives/:archive_id",
            "params": [
              {
                "name": "archive_id",
                "value": "",
                "type": "path",
                "description": "The ID of the archive."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a given archive configuration.\n\n**Note**: Using this method updates your archive configuration by **replacing**\nyour current configuration with the new one sent to your Datadog organization."
        },
        {
          "info": {
            "name": "Datadog Delete an Archive",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{subdomain}.{site}/api/v2/logs/config/archives/:archive_id",
            "params": [
              {
                "name": "archive_id",
                "value": "",
                "type": "path",
                "description": "The ID of the archive."
              }
            ]
          },
          "docs": "Delete a given archive from your organization."
        },
        {
          "info": {
            "name": "Datadog List Read Roles for an Archive",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/logs/config/archives/:archive_id/readers",
            "params": [
              {
                "name": "archive_id",
                "value": "",
                "type": "path",
                "description": "The ID of the archive."
              }
            ]
          },
          "docs": "Returns all read roles a given archive is restricted to."
        },
        {
          "info": {
            "name": "Datadog Grant Role to an Archive",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{subdomain}.{site}/api/v2/logs/config/archives/:archive_id/readers",
            "params": [
              {
                "name": "archive_id",
                "value": "",
                "type": "path",
                "description": "The ID of the archive."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Adds a read role to an archive. ([Roles API](https://docs.datadoghq.com/api/v2/roles/))"
        },
        {
          "info": {
            "name": "Datadog Revoke Role from an Archive",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{subdomain}.{site}/api/v2/logs/config/archives/:archive_id/readers",
            "params": [
              {
                "name": "archive_id",
                "value": "",
                "type": "path",
                "description": "The ID of the archive."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Removes a role from an archive. ([Roles API](https://docs.datadoghq.com/api/v2/roles/))"
        }
      ]
    }
  ],
  "bundled": true
}