Skip to content

Add a new event.

POST
/api/events

Authorizations

api_key

Requests manipulating data need to supply a CSRF token

TypeAPI Key (header: X-CSRF-Token)

Request Body

application/json
JSON
{
"id": 1,
"regionId": 1,
"regionName": "Göttingen",
"name": "Event Name",
"startDate": "2024-05-31T12:45:00Z",
"endDate": "2024-05-31T15:00:00Z",
"description": "Event Description",
"type": 1,
"address": {
"street": "",
"postalCode": "string",
"city": ""
},
"location": {
"lat": 52.5,
"lon": 13.4
},
"locationDetails": "string",
"isPublic": false
}

Responses

Success

Playground

Authorization
Body

Samples

cURL
JavaScript
PHP
Python