{
  "opencollection": "1.0.0",
  "info": {
    "name": "Akamai: API Endpoint Definition Access tokens EdgeWorkers API",
    "version": "2"
  },
  "items": [
    {
      "info": {
        "name": "EdgeWorkers",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Download EdgeWorker code",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{hostname}/api-definitions/v2/sandboxes/:sandboxId/edgeworkers/:edgeWorkerId",
            "params": [
              {
                "name": "edgeWorkerId",
                "value": "{{edgeWorkerId}}",
                "type": "path",
                "description": "Unique identifier for the EdgeWorker."
              },
              {
                "name": "sandboxId",
                "value": "{{sandboxId}}",
                "type": "path",
                "description": "Unique identifier for the sandbox."
              },
              {
                "name": "access",
                "value": "{{access}}",
                "type": "query",
                "description": "__Enum__ Indicates the access level of the request. Specify either `USER` to perform the request for the sandboxes that you can access, or `ACCOUNT` to perform the request for all sandboxes within the account."
              },
              {
                "name": "accountSwitchKey",
                "value": "{{accountSwitchKey}}",
                "type": "query",
                "description": "For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys)."
              }
            ]
          },
          "docs": "Retrieve the script bundle in `.tgz` form for the specified `sandboxId` and `edgeWorkerId`. To learn more about EdgeWorkers, refer to the [EdgeWorkers API](https://techdocs.akamai.com/edgeworkers/reference/api)."
        },
        {
          "info": {
            "name": "Upload EdgeWorker code",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{hostname}/api-definitions/v2/sandboxes/:sandboxId/edgeworkers/:edgeWorkerId",
            "params": [
              {
                "name": "edgeWorkerId",
                "value": "{{edgeWorkerId}}",
                "type": "path",
                "description": "Unique identifier for the EdgeWorker."
              },
              {
                "name": "sandboxId",
                "value": "{{sandboxId}}",
                "type": "path",
                "description": "Unique identifier for the sandbox."
              },
              {
                "name": "access",
                "value": "{{access}}",
                "type": "query",
                "description": "__Enum__ Indicates the access level of the request. Specify either `USER` to perform the request for the sandboxes that you can access, or `ACCOUNT` to perform the request for all sandboxes within the account."
              },
              {
                "name": "accountSwitchKey",
                "value": "{{accountSwitchKey}}",
                "type": "query",
                "description": "For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys)."
              }
            ]
          },
          "docs": "Add a script bundle for a given `edgeWorkerId` to the specified `sandboxId`."
        },
        {
          "info": {
            "name": "Delete EdgeWorker",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{hostname}/api-definitions/v2/sandboxes/:sandboxId/edgeworkers/:edgeWorkerId",
            "params": [
              {
                "name": "edgeWorkerId",
                "value": "{{edgeWorkerId}}",
                "type": "path",
                "description": "Unique identifier for the EdgeWorker."
              },
              {
                "name": "sandboxId",
                "value": "{{sandboxId}}",
                "type": "path",
                "description": "Unique identifier for the sandbox."
              },
              {
                "name": "access",
                "value": "{{access}}",
                "type": "query",
                "description": "__Enum__ Indicates the access level of the request. Specify either `USER` to perform the request for the sandboxes that you can access, or `ACCOUNT` to perform the request for all sandboxes within the account."
              },
              {
                "name": "accountSwitchKey",
                "value": "{{accountSwitchKey}}",
                "type": "query",
                "description": "For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys)."
              }
            ]
          },
          "docs": "Delete an EdgeWorker with an `edgeWorkerId` from the specified `sandboxId`."
        }
      ]
    }
  ],
  "bundled": true
}