{
  "opencollection": "1.0.0",
  "info": {
    "name": "NationBuilder V2 Async Processes Suggestions API",
    "version": "2.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Suggestions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List all suggestions in a nation",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.nationbuilder.com/api/v2/suggestions",
            "params": [
              {
                "name": "include",
                "value": "",
                "type": "query",
                "description": "Comma-delimited list of sideloaded resources to include as part of the suggestion 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[suggestions]",
                "value": "",
                "type": "query",
                "description": "Comma-delimited list of suggestion 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": "Returns a paginated list of all Suggestions across all SuggestionBoxes."
        },
        {
          "info": {
            "name": "Create a suggestion",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{subdomain}.nationbuilder.com/api/v2/suggestions",
            "params": [
              {
                "name": "include",
                "value": "",
                "type": "query",
                "description": "Comma-delimited list of sideloaded resources to include as part of the suggestion 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[suggestions]",
                "value": "",
                "type": "query",
                "description": "Comma-delimited list of suggestion attributes to only return in the response"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a Suggestion.\n\n**Required attributes:**\n- `suggestion_box_id` - ID of the SuggestionBox to add this Suggestion to\n- `headline` - Display name/title for the Suggestion\n\n**Optional attributes:**\n- `content` - Further explanation of the Suggestion beyond the headline\n- `slug` - URL-friendly identifier (auto-generated from name if not provided)\n- `status` - Publication status (defaults to 'published' if not provided)\n- `recruiter_id` - Signup ID for the person to assign as the recruiter when"
        },
        {
          "info": {
            "name": "Show suggestion with provided ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.nationbuilder.com/api/v2/suggestions/: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 suggestion 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[suggestions]",
                "value": "",
                "type": "query",
                "description": "Comma-delimited list of suggestion attributes to only return in the response"
              }
            ]
          },
          "docs": "Retrieves a specific Suggestion by its ID."
        },
        {
          "info": {
            "name": "Update a suggestion",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{subdomain}.nationbuilder.com/api/v2/suggestions/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates a Suggestion.\n\n**Required attributes:**\n- `suggestion_box_id` - ID of the SuggestionBox to add this Suggestion to\n- `headline` - Display name/title for the Suggestion\n\n**Optional attributes:**\n- `content` - Further explanation of the Suggestion beyond the headline\n- `slug` - URL-friendly identifier (auto-generated from name if not provided)\n- `status` - Publication status (defaults to 'published' if not provided)\n- `recruiter_id` - Signup ID for the person to assign as the recruiter when"
        },
        {
          "info": {
            "name": "Delete a suggestion",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{subdomain}.nationbuilder.com/api/v2/suggestions/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              }
            ]
          },
          "docs": "Permanently deletes a Suggestion and its associated page.\n\n**Warning:** This action cannot be undone. The Suggestion and all its data\nwill be permanently removed from the system.\n"
        }
      ]
    }
  ],
  "bundled": true
}