{
  "opencollection": "1.0.0",
  "info": {
    "name": "NationBuilder V2 Async Processes Precincts API",
    "version": "2.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Precincts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List all precincts in a nation",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.nationbuilder.com/api/v2/precincts",
            "params": [
              {
                "name": "include",
                "value": "",
                "type": "query",
                "description": "Comma-delimited list of sideloaded resources to include as part of the precinct index response.\nSee guidance [here](https://support.nationbuilder.com/en/articles/9899245-api-v2-walkthrough#h_2d5333adab) about\nsideloading large numbers of resources and pagination.\n"
              },
              {
                "name": "fields[precincts]",
                "value": "",
                "type": "query",
                "description": "Comma-delimited list of precinct attributes to only return in the response"
              },
              {
                "name": "page[number]",
                "value": "",
                "type": "query",
                "description": "Page number to list (starting at 1)"
              },
              {
                "name": "page[size]",
                "value": "",
                "type": "query",
                "description": "Number of results to display per page (default: 20, max: 100, min: 1)"
              }
            ]
          },
          "docs": "Lists all precincts"
        },
        {
          "info": {
            "name": "Create a precinct",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{subdomain}.nationbuilder.com/api/v2/precincts",
            "params": [
              {
                "name": "include",
                "value": "",
                "type": "query",
                "description": "Comma-delimited list of sideloaded resources to include as part of the precinct index response.\nSee guidance [here](https://support.nationbuilder.com/en/articles/9899245-api-v2-walkthrough#h_2d5333adab) about\nsideloading large numbers of resources and pagination.\n"
              },
              {
                "name": "fields[precincts]",
                "value": "",
                "type": "query",
                "description": "Comma-delimited list of precinct attributes to only return in the response"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a precinct from given data."
        },
        {
          "info": {
            "name": "Show precinct with provided ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.nationbuilder.com/api/v2/precincts/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              },
              {
                "name": "include",
                "value": "",
                "type": "query",
                "description": "Comma-delimited list of sideloaded resources to include as part of the precinct response.\nSee guidance [here](https://support.nationbuilder.com/en/articles/9899245-api-v2-walkthrough#h_2d5333adab) about\nsideloading large numbers of resources and pagination.\n"
              },
              {
                "name": "fields[precincts]",
                "value": "",
                "type": "query",
                "description": "Comma-delimited list of precinct attributes to only return in the response"
              }
            ]
          },
          "docs": "Returns the precinct that matches the given ID."
        },
        {
          "info": {
            "name": "Update an existing precinct",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{subdomain}.nationbuilder.com/api/v2/precincts/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              },
              {
                "name": "include",
                "value": "",
                "type": "query",
                "description": "Comma-delimited list of sideloaded resources to include as part of the precinct response.\nSee guidance [here](https://support.nationbuilder.com/en/articles/9899245-api-v2-walkthrough#h_2d5333adab) about\nsideloading large numbers of resources and pagination.\n"
              },
              {
                "name": "fields[precincts]",
                "value": "",
                "type": "query",
                "description": "Comma-delimited list of precinct attributes to only return in the response"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an existing precinct."
        },
        {
          "info": {
            "name": "Delete precinct with provided ID",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{subdomain}.nationbuilder.com/api/v2/precincts/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              },
              {
                "name": "include",
                "value": "",
                "type": "query",
                "description": "Comma-delimited list of sideloaded resources to include as part of the precinct response.\nSee guidance [here](https://support.nationbuilder.com/en/articles/9899245-api-v2-walkthrough#h_2d5333adab) about\nsideloading large numbers of resources and pagination.\n"
              },
              {
                "name": "fields[precincts]",
                "value": "",
                "type": "query",
                "description": "Comma-delimited list of precinct attributes to only return in the response"
              }
            ]
          },
          "docs": "Permanently removes the precinct that matches the given ID."
        }
      ]
    }
  ],
  "bundled": true
}