Create event
POST
/api/events
Add a new event. Allow anyone to add an event (anon event has to be confirmed).
Content-Type has to be multipart/form-data to support image upload
Request Body
application/json
JSON "title": "Event title", "description": "Event description", "place_name": "Place name", "place_address": "Place address", "place_latitude": "Place latitude", "place_longitude": "Place longitude", "online_locations": [ [ "https://event.online", "https://eventalt.online" ] ], "start_datetime": 1784109600, "multidate": true, "tags": [ "string" ], "recurrent": { "frequency": "1w", "type": "ordinal" }, "recurrent.frequency": "1w", "recurrent.days": [ [ 1, 3 ] ], "image": "", "is_visible": true, "image_url": "string"
{
}
Responses
List of events.
application/json
JSON "id": 1, "slug": "event-slug", "status": "EventScheduled", "title": "Event title", "media": [ { "name": "Image name", "url": "6e599b27-5ed8-44c9-b954-53e9c6fa3c80.jpg", "height": 400, "width": 200, "size": 50000, "focalpoint": [ [ 0, 0 ] ] } ], "start_datetime": 1784109600, "end_datetime": 1784131200, "place": { "type": "string", "properties": "string" }
{
}

