{
  "opencollection": "1.0.0",
  "info": {
    "name": "Vanilla Addons Polls API",
    "version": "2.0"
  },
  "items": [
    {
      "info": {
        "name": "Polls",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List polls.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://open.vanillaforums.com/api/v2/polls",
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number. See [Pagination](https://docs.vanillaforums.com/apiv2/#pagination).\n"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Desired number of items per page.\n"
              },
              {
                "name": "insertUserID",
                "value": "",
                "type": "query",
                "description": "Filter by author.\n"
              },
              {
                "name": "expand",
                "value": "",
                "type": "query",
                "description": "Expand associated records using one or more valid field names. A value of \"all\" will expand all expandable fields.\n"
              },
              {
                "name": "fields",
                "value": "",
                "type": "query",
                "description": "Only return fields with these keys from the output. Use dot notation for nested fields."
              }
            ]
          },
          "docs": "List polls."
        },
        {
          "info": {
            "name": "Create a poll.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://open.vanillaforums.com/api/v2/polls",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a poll."
        },
        {
          "info": {
            "name": "Get a poll.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://open.vanillaforums.com/api/v2/polls/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The poll ID.\n"
              },
              {
                "name": "fields",
                "value": "",
                "type": "query",
                "description": "Only return fields with these keys from the output. Use dot notation for nested fields."
              }
            ]
          },
          "docs": "Get a poll."
        },
        {
          "info": {
            "name": "Delete a poll.",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://open.vanillaforums.com/api/v2/polls/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The poll ID.\n"
              }
            ]
          },
          "docs": "Delete a poll."
        },
        {
          "info": {
            "name": "Vote for a poll option.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://open.vanillaforums.com/api/v2/polls/:id/vote",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Vote for a poll option."
        },
        {
          "info": {
            "name": "Delete a poll vote.",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://open.vanillaforums.com/api/v2/polls/:id/vote",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The poll ID.\n"
              },
              {
                "name": "userID",
                "value": "",
                "type": "query",
                "description": "The user that voted. Defaults to the current user.\n"
              }
            ]
          },
          "docs": "Delete a poll vote."
        },
        {
          "info": {
            "name": "List polls' votes.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://open.vanillaforums.com/api/v2/polls/:id/votes",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number. See [Pagination](https://docs.vanillaforums.com/apiv2/#pagination).\n"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Desired number of items per page.\n"
              },
              {
                "name": "pollOptionID",
                "value": "",
                "type": "query",
                "description": "Filter by pollOptionID.\n"
              },
              {
                "name": "expand",
                "value": "",
                "type": "query",
                "description": "Expand associated records using one or more valid field names. A value of \"all\" will expand all expandable fields.\n"
              },
              {
                "name": "fields",
                "value": "",
                "type": "query",
                "description": "Only return fields with these keys from the output. Use dot notation for nested fields."
              }
            ]
          },
          "docs": "List polls' votes."
        }
      ]
    }
  ],
  "bundled": true
}