Add a new event.
POST
/api/events
Authorizations
api_key
Requests manipulating data need to supply a CSRF token
Type
API 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": null, "city": "" }, "location": { "lat": 52.5, "lon": 13.4 }, "locationDetails": "string", "isPublic": false
{
}
Responses
Success
application/json
JSON "id": 0
{
}