{
  "opencollection": "1.0.0",
  "info": {
    "name": "APIs.io Engineering Platform Amazon API Gateway 2014 11 13 Pages Deployment API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Pages Deployment",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "APIs.io Engineering Platform Get deployments",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://apigateway.{region}.amazonaws.com/accounts/:account_id/pages/projects/:project_name/deployments",
            "params": [
              {
                "name": "project_name",
                "value": "",
                "type": "path"
              },
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "env",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Fetch a list of project deployments."
        },
        {
          "info": {
            "name": "APIs.io Engineering Platform Create deployment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "http://apigateway.{region}.amazonaws.com/accounts/:account_id/pages/projects/:project_name/deployments",
            "params": [
              {
                "name": "project_name",
                "value": "",
                "type": "path"
              },
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "multipart-form",
              "data": [
                {
                  "name": "branch",
                  "type": "text",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Start a new deployment from production. The repository and account must have already been authorized on the Cloudflare Pages dashboard."
        },
        {
          "info": {
            "name": "APIs.io Engineering Platform Get deployment info",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://apigateway.{region}.amazonaws.com/accounts/:account_id/pages/projects/:project_name/deployments/:deployment_id",
            "params": [
              {
                "name": "deployment_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_name",
                "value": "",
                "type": "path"
              },
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Fetch information about a deployment."
        },
        {
          "info": {
            "name": "APIs.io Engineering Platform Delete deployment",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "http://apigateway.{region}.amazonaws.com/accounts/:account_id/pages/projects/:project_name/deployments/:deployment_id",
            "params": [
              {
                "name": "deployment_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_name",
                "value": "",
                "type": "path"
              },
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Delete a deployment."
        },
        {
          "info": {
            "name": "APIs.io Engineering Platform Get deployment logs",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://apigateway.{region}.amazonaws.com/accounts/:account_id/pages/projects/:project_name/deployments/:deployment_id/history/logs",
            "params": [
              {
                "name": "deployment_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_name",
                "value": "",
                "type": "path"
              },
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Fetch deployment logs for a project."
        },
        {
          "info": {
            "name": "APIs.io Engineering Platform Retry deployment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "http://apigateway.{region}.amazonaws.com/accounts/:account_id/pages/projects/:project_name/deployments/:deployment_id/retry",
            "params": [
              {
                "name": "deployment_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_name",
                "value": "",
                "type": "path"
              },
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Retry a previous deployment."
        },
        {
          "info": {
            "name": "APIs.io Engineering Platform Rollback deployment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "http://apigateway.{region}.amazonaws.com/accounts/:account_id/pages/projects/:project_name/deployments/:deployment_id/rollback",
            "params": [
              {
                "name": "deployment_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_name",
                "value": "",
                "type": "path"
              },
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Rollback the production deployment to a previous deployment. You can only rollback to succesful builds on production."
        }
      ]
    }
  ],
  "bundled": true
}