{
  "opencollection": "1.0.0",
  "info": {
    "name": "NationBuilder V2 Async Processes Lists API",
    "version": "2.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Lists",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List all lists in a nation",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.nationbuilder.com/api/v2/lists",
            "params": [
              {
                "name": "include",
                "value": "",
                "type": "query",
                "description": "Comma-delimited list of sideloaded resources to include as part of the list 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[lists]",
                "value": "",
                "type": "query",
                "description": "Comma-delimited list of list 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 lists"
        },
        {
          "info": {
            "name": "Create a list",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{subdomain}.nationbuilder.com/api/v2/lists",
            "params": [
              {
                "name": "include",
                "value": "",
                "type": "query",
                "description": "Comma-delimited list of sideloaded resources to include as part of the list 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[lists]",
                "value": "",
                "type": "query",
                "description": "Comma-delimited list of list attributes to only return in the response"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a list from given data"
        },
        {
          "info": {
            "name": "Show list with provided ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.nationbuilder.com/api/v2/lists/: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 list 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[lists]",
                "value": "",
                "type": "query",
                "description": "Comma-delimited list of list attributes to only return in the response"
              }
            ]
          },
          "docs": "Returns the list that matches the given ID."
        },
        {
          "info": {
            "name": "Update an existing list",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{subdomain}.nationbuilder.com/api/v2/lists/: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 list 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[lists]",
                "value": "",
                "type": "query",
                "description": "Comma-delimited list of list attributes to only return in the response"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an existing list"
        },
        {
          "info": {
            "name": "Delete list with provided ID",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{subdomain}.nationbuilder.com/api/v2/lists/: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 list 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[lists]",
                "value": "",
                "type": "query",
                "description": "Comma-delimited list of list attributes to only return in the response"
              }
            ]
          },
          "docs": "Permanently removes the list that matches the given ID."
        },
        {
          "info": {
            "name": "Add signups",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{subdomain}.nationbuilder.com/api/v2/lists/:id/add_signups",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Add Signup IDs to list via an asynchronous process.\nReturns the token of an asynchronous process that can be queried using another endpoint.\nAccepts up to 10,000 signup IDs in a single payload.\n"
        },
        {
          "info": {
            "name": "Remove signups",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{subdomain}.nationbuilder.com/api/v2/lists/:id/remove_signups",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Remove Signup IDs from a list via an asynchronous process.\nReturns the token of an asynchronous process that can be queried using another endpoint.\nAccepts up to 10,000 signup IDs in a single payload.\n"
        },
        {
          "info": {
            "name": "List all signups on the list for provided ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.nationbuilder.com/api/v2/lists/:id/signups",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "List id"
              },
              {
                "name": "include",
                "value": "",
                "type": "query",
                "description": "Comma-delimited list of sideloaded resources to include as part of the 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[signups]",
                "value": "",
                "type": "query",
                "description": "Comma-delimited list of signup 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 signups for a given list"
        },
        {
          "info": {
            "name": "Add a tag to signups",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{subdomain}.nationbuilder.com/api/v2/lists/:id/tag",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Tag signups in list via an asynchronous process. If the tag does not exist it is created.\nReturns the token of an asyncrhronously process that can be queried using another endpoint.\n"
        },
        {
          "info": {
            "name": "Remove a tag from signups",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{subdomain}.nationbuilder.com/api/v2/lists/:id/untag",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Remove tag from signups in list via an asynchronous process.\nReturns the token of an asyncrhronously process that can be queried using another endpoint.\n"
        }
      ]
    }
  ],
  "bundled": true
}