{
  "opencollection": "1.0.0",
  "info": {
    "name": "Knock Audiences Accounts Branches API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Branches",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List branches",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.knock.app/v1/branches",
            "params": [
              {
                "name": "environment",
                "value": "",
                "type": "query",
                "description": "The environment slug."
              },
              {
                "name": "after",
                "value": "",
                "type": "query",
                "description": "The cursor to fetch entries after."
              },
              {
                "name": "before",
                "value": "",
                "type": "query",
                "description": "The cursor to fetch entries before."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "The number of entries to fetch per-page."
              }
            ]
          },
          "docs": "Returns a paginated list of branches. The branches will be returned in order of their last commit time (newest first)."
        },
        {
          "info": {
            "name": "Get a branch",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.knock.app/v1/branches/:branch_slug",
            "params": [
              {
                "name": "environment",
                "value": "",
                "type": "query",
                "description": "The environment slug."
              },
              {
                "name": "branch_slug",
                "value": "",
                "type": "path",
                "description": "The slug of the branch to retrieve."
              }
            ]
          },
          "docs": "Returns a single branch by the `branch_slug`."
        },
        {
          "info": {
            "name": "Create a branch",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.knock.app/v1/branches/:branch_slug",
            "params": [
              {
                "name": "environment",
                "value": "",
                "type": "query",
                "description": "The environment slug."
              },
              {
                "name": "branch_slug",
                "value": "",
                "type": "path",
                "description": "The slug for the new branch to create."
              }
            ]
          },
          "docs": "Creates a new branch off of the development environment with the given slug."
        },
        {
          "info": {
            "name": "Delete a branch",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.knock.app/v1/branches/:branch_slug",
            "params": [
              {
                "name": "environment",
                "value": "",
                "type": "query",
                "description": "The environment slug."
              },
              {
                "name": "branch_slug",
                "value": "",
                "type": "path",
                "description": "The slug of the branch to delete."
              }
            ]
          },
          "docs": "Deletes a branch by the `branch_slug`."
        }
      ]
    }
  ],
  "bundled": true
}