---
agentTools:
  projectIndex: https://scrimmage-rewards.readme.io/llms.txt
---

# Cancel a poll

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/players/@me/polls/{pollId}/cancel": {
      "post": {
        "operationId": "PollsController_cancel",
        "parameters": [
          {
            "name": "pollId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "scrimmage-namespace",
            "in": "header",
            "description": "Namespace",
            "required": true,
            "schema": {
              "type": "string",
              "default": "staging"
            }
          },
          {
            "name": "Scrimmage-Version",
            "in": "header",
            "description": "Version",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "default": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserPollDTO"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "Cancel a poll",
        "tags": [
          "Polls"
        ]
      }
    }
  },
  "info": {
    "title": "Player API",
    "description": "API for player interaction",
    "version": "1.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://{domain}.apps.scrimmage.co/p2e",
      "description": "Remote Cluster / Ingress",
      "variables": {
        "domain": {
          "description": "Domain of the cluster. Get one after registration",
          "default": "coinflip"
        }
      }
    },
    {
      "url": "/p2e",
      "description": "Cluster / Ingress"
    },
    {
      "url": "/",
      "description": "Local"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "RewardDTO": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "templateFields": {
            "type": "object"
          },
          "config": {
            "type": "object"
          },
          "visibility": {
            "type": "string"
          },
          "amount": {
            "type": "object"
          },
          "weight": {
            "type": "number"
          }
        },
        "required": [
          "type",
          "templateFields",
          "config",
          "visibility",
          "amount",
          "weight"
        ]
      },
      "RewardModifierDTO": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "config": {
            "type": "object"
          }
        },
        "required": [
          "type",
          "config"
        ]
      },
      "RewardBundleDTO": {
        "type": "object",
        "properties": {
          "rewards": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RewardDTO"
            }
          },
          "modifiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RewardModifierDTO"
            }
          }
        },
        "required": [
          "rewards",
          "modifiers"
        ]
      },
      "PollConfigDTO": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "options": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "requirements": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "startedAt": {
            "format": "date-time",
            "type": "string"
          },
          "lastFinishedAt": {
            "format": "date-time",
            "type": "string"
          },
          "completionDurationInMinutes": {
            "type": "number"
          },
          "resultVisibilityDurationInMinutes": {
            "type": "number"
          },
          "revoteLimit": {
            "type": "number"
          },
          "cancellable": {
            "type": "boolean"
          },
          "rewardBundle": {
            "$ref": "#/components/schemas/RewardBundleDTO"
          }
        },
        "required": [
          "id",
          "title",
          "description",
          "status",
          "type",
          "options",
          "requirements",
          "startedAt",
          "lastFinishedAt",
          "completionDurationInMinutes",
          "resultVisibilityDurationInMinutes",
          "revoteLimit",
          "cancellable",
          "rewardBundle"
        ]
      },
      "UserPollDTO": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string"
          },
          "pollConfig": {
            "$ref": "#/components/schemas/PollConfigDTO"
          },
          "status": {
            "type": "string"
          },
          "selections": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "revoteCount": {
            "type": "number"
          },
          "lastVoteChangeAt": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "userId",
          "pollConfig",
          "status",
          "selections",
          "revoteCount",
          "lastVoteChangeAt"
        ]
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 104,
      "1": 45,
      "2": 139,
      "3": 169,
      "4": 112,
      "5": 184,
      "6": 145,
      "7": 0,
      "8": 86,
      "9": 190,
      "10": 6,
      "11": 105
    }
  }
}
```