---
updatedAt: 2025-06-09T23:23:34.000Z
agentTools:
  projectIndex: https://docs.ngpvan.com/llms.txt
---

# /events

Use this endpoint to create a new Event.

If successful, the endpoint responds with HTTP Status Code `201 Created` and the integer ID of the created Event in the response body. It also sets the **Location** header to the (location)[ref:eventseventid] of the newly created Event.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "van-crm",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.securevan.com/v4"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/events": {
      "post": {
        "summary": "/events",
        "description": "Use this endpoint to create a new Event.\n\nIf successful, the endpoint responds with HTTP Status Code `201 Created` and the integer ID of the created Event in the response body. It also sets the **Location** header to the (location)[ref:eventseventid] of the newly created Event.",
        "operationId": "events-2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "event": {
                    "type": "object",
                    "description": "Accepts a standard Event object with simple types and no read-only values specified.",
                    "properties": {}
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": {
                    "name": "Neighbors Calling Neighbors",
                    "shortName": "NeighborCall",
                    "description": "Come help get the word out about our great campaign.",
                    "startDate": "2015-06-02T15:00:00-04:00",
                    "endDate": "2015-06-02T20:00:00-04:00",
                    "eventType": {
                      "eventTypeId": 143856
                    },
                    "isOnlyEditableByCreatingUser": false,
                    "locations": [
                      {
                        "locationId": 273
                      }
                    ],
                    "codes": [
                      {
                        "codeId": 20516
                      },
                      {
                        "codeId": 20518
                      }
                    ],
                    "notes": [
                      {
                        "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit...",
                        "isViewRestricted": true
                      }
                    ],
                    "shifts": [
                      {
                        "name": "Setup",
                        "startTime": "2015-06-01T15:00:00-04:00",
                        "endTime": "2015-06-01T16:00:00-04:00"
                      },
                      {
                        "name": "Early Shift",
                        "startTime": "2015-06-01T16:00:00-04:00",
                        "endTime": "2015-06-01T18:00:00-04:00"
                      },
                      {
                        "name": "Late Shift",
                        "startTime": "2015-06-01T18:00:00-04:00",
                        "endTime": "2015-06-01T20:00:00-04:00"
                      }
                    ],
                    "roles": [
                      {
                        "roleId": 111687,
                        "name": "Host",
                        "isEventLead": true
                      },
                      {
                        "roleId": 111689,
                        "name": "Phone Banker",
                        "isEventLead": false,
                        "min": 5,
                        "goal": 20
                      }
                    ],
                    "voterRegistrationBatches": [
                      {
                        "voterRegistrationBatchId": 999
                      },
                      {
                        "voterRegistrationBatchId": 1000
                      }
                    ],
                    "districtFieldValue": "003"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "123456789"
                  }
                },
                "schema": {
                  "type": "integer",
                  "example": 123456789,
                  "default": 0
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"errors\": [\n        {\n            \"code\": \"Error code\",\n            \"text\": \"Error description\"\n        }\n    ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "example": "Error code"
                          },
                          "text": {
                            "type": "string",
                            "example": "Error description"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```