wikical REST API
event
create
Use this endpoint to create new events. Events are attributed to the user being logged-in. Only authenticated users may create events. The same validation rules apply as for the web-version. Validation errors result to `400 Bad Request` with the field errors in response body. Successful event creation results to `201 Created` with new event data in response body.
Request Body
The request body should be a "application/json" encoded object, containing the following items.
| Parameter | Description |
|---|---|
title required | The main title of the event |
startdate required | Use ISO format e.g. 2004-08-13 |
enddate | ISO format e.g. 2004-08-29 or leave blank |
starttime | e.g. 18:00 or leave blank |
endtime | e.g. 22:00 or leave blank |
tag_list | space or comma separate list of tags names |
description | A text field with an event description which is plain text by default or rst if the `.. rst` identifier is used (see event edit view) |
venue | Enter the name of the venue hosting the event. |
locality | Enter the geoname id of a city (e.g. `2950159` for Berlin), or a city name followed by country e.g. `Berlin,DE' |
coordinates | use `latitude longitude` e.g. `52.52 13.04`. Positive numbers for North latitudes / East longitudes |
urls_list | Specify event external urls as a JSON string. For each url specify values for `url_name` and `url`. Example of a single url: `{"url_name": "main", "url": "http://example.com"}` To specify many urls, use a list:`[{"url_name": "main", "url": "http://example.com"}, {"url_name": "linux", "url": "http://linux.com"}]` |
dates_list | Specify event special dates as a json string. For each special date specify values for `eventdate_name` and `eventdate_date`. Example of a single special date: `{"eventdate_name": "deadline", "eventdate_date": "2015-01-01"}` To specify many special dates, use a list: `[{"eventdate_name": "deadline", "eventdate_date": "2015-01-01"}, {"eventdate_name": "proceedings", "eventdate_date": "2015-05-01"}]` |
sessions_list | Specify event special dates as a JSON string. For each special session specify values for `session_name`, `session_date`, `session_starttime` and `session_endtime`. Same rules apply as in dates list. |
file | An image file containing an event cover picture. Optional. You may use it only if posting Multipart HTML form data (not available e.g. when posting json). |
crop_ratio | Use it in conjuction with "file" field. Default value is 0.5. Specifies the square crop to be applied in the initial image. 0 -> top-left, 0.5 -> center, 1.0 bottom-right. |
picture_license | Licensing conditions including copyright attribution to authors of the event cover picture |
recurrences_action | When updating events that are part of recurrences, you need to specify whenever changes are applied only to the current event, future, past, or all recurred events. You may leave this field empty for non-recurring events, for new events (create) has also no effect, for recurring events is should have one of these values: ['future', 'this', 'all', 'past'] |
key | Specify a `key` so emails are sent to you when you create new events, useful to get automated notifications with newly created events, or errors. `key` is used to group and summary messages in emails, and for example you may use a key for each of your scripts |