{
  "opencollection": "1.0.0",
  "info": {
    "name": "APIs.io Engineering Platform Amazon API Gateway 2014 11 13 Worker Script API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Worker Script",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "APIs.io Engineering Platform List Workers",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://apigateway.{region}.amazonaws.com/accounts/:account_id/workers/scripts",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Fetch a list of uploaded workers."
        },
        {
          "info": {
            "name": "APIs.io Engineering Platform Download Worker",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://apigateway.{region}.amazonaws.com/accounts/:account_id/workers/scripts/:script_name",
            "params": [
              {
                "name": "script_name",
                "value": "",
                "type": "path"
              },
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Fetch raw script content for your worker. Note this is the original script content, not JSON encoded."
        },
        {
          "info": {
            "name": "APIs.io Engineering Platform Upload Worker Module",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "http://apigateway.{region}.amazonaws.com/accounts/:account_id/workers/scripts/:script_name",
            "params": [
              {
                "name": "script_name",
                "value": "",
                "type": "path"
              },
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "rollback_to",
                "value": "",
                "type": "query",
                "description": "Rollback to provided deployment based on deployment ID. Request body will only parse a \"message\" part. You can learn more about deployments [here](https://developers.cloudflare.com/workers/platform/deployments/)."
              }
            ],
            "body": {
              "type": "multipart-form",
              "data": []
            }
          },
          "docs": "Upload a worker module. You can find more about the multipart metadata on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/."
        },
        {
          "info": {
            "name": "APIs.io Engineering Platform Delete Worker",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "http://apigateway.{region}.amazonaws.com/accounts/:account_id/workers/scripts/:script_name",
            "params": [
              {
                "name": "script_name",
                "value": "",
                "type": "path"
              },
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "force",
                "value": "",
                "type": "query",
                "description": "If set to true, delete will not be stopped by associated service binding, durable object, or other binding. Any of these associated bindings/durable objects will be deleted along with the script."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Delete your worker. This call has no response body on a successful delete."
        },
        {
          "info": {
            "name": "APIs.io Engineering Platform Put script content",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "http://apigateway.{region}.amazonaws.com/accounts/:account_id/workers/scripts/:script_name/content",
            "headers": [
              {
                "name": "CF-WORKER-BODY-PART",
                "value": ""
              },
              {
                "name": "CF-WORKER-MAIN-MODULE-PART",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "script_name",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "multipart-form",
              "data": [
                {
                  "name": "<any part name>",
                  "type": "text",
                  "value": ""
                },
                {
                  "name": "metadata",
                  "type": "text",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Put script content without touching config or metadata"
        },
        {
          "info": {
            "name": "APIs.io Engineering Platform Get script content",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://apigateway.{region}.amazonaws.com/accounts/:account_id/workers/scripts/:script_name/content/v2",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "script_name",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Fetch script content only"
        },
        {
          "info": {
            "name": "APIs.io Engineering Platform Get Script Settings",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://apigateway.{region}.amazonaws.com/accounts/:account_id/workers/scripts/:script_name/script-settings",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "script_name",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get script-level settings when using [Worker Versions](https://developers.cloudflare.com/api/operations/worker-versions-list-versions). Includes Logpush and Tail Consumers."
        },
        {
          "info": {
            "name": "APIs.io Engineering Platform Patch Script Settings",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "http://apigateway.{region}.amazonaws.com/accounts/:account_id/workers/scripts/:script_name/script-settings",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "script_name",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Patch script-level settings when using [Worker Versions](https://developers.cloudflare.com/api/operations/worker-versions-list-versions). Includes Logpush and Tail Consumers."
        },
        {
          "info": {
            "name": "APIs.io Engineering Platform Get Settings",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://apigateway.{region}.amazonaws.com/accounts/:account_id/workers/scripts/:script_name/settings",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "script_name",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get metadata and config, such as bindings or usage model"
        },
        {
          "info": {
            "name": "APIs.io Engineering Platform Patch Settings",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "http://apigateway.{region}.amazonaws.com/accounts/:account_id/workers/scripts/:script_name/settings",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "script_name",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "multipart-form",
              "data": [
                {
                  "name": "settings",
                  "type": "text",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Patch metadata or config, such as bindings or usage model"
        },
        {
          "info": {
            "name": "APIs.io Engineering Platform Fetch Usage Model",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://apigateway.{region}.amazonaws.com/accounts/:account_id/workers/scripts/:script_name/usage-model",
            "params": [
              {
                "name": "script_name",
                "value": "",
                "type": "path"
              },
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Fetches the Usage Model for a given Worker."
        },
        {
          "info": {
            "name": "APIs.io Engineering Platform Update Usage Model",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "http://apigateway.{region}.amazonaws.com/accounts/:account_id/workers/scripts/:script_name/usage-model",
            "params": [
              {
                "name": "script_name",
                "value": "",
                "type": "path"
              },
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates the Usage Model for a given Worker. Requires a Workers Paid subscription."
        }
      ]
    }
  ],
  "bundled": true
}