The API endpoint for (day) time events in DayCaptain is: https://daycaptain.com/<date-iso-8601>/day-time-events
, e.g. https://daycaptain.com/2021-01-01/day-time-events
You add a time event that shows up in your day view time line of a specific day with the following HTTP call:
curl 'https://daycaptain.com/2021-12-31/day-time-events' \ -XPOST -i \ -H "Authorization: Bearer <token>" \ -H 'Content-Type: application/json' \ -d '{"string": "New year party", "start": "2021-12-31T19:00:00+01:00[Europe/Berlin]", "end": "2022-01-01T02:00:00+01:00[Europe/Berlin]"}'
URL path |
Description |
Example |
|
The date in ISO-8601 |
|
JSON field |
Description |
Example |
|
Event name (mandatory) |
|
|
Event start date & time in ISO-8601 (mandatory) |
|
|
Event end date & time in ISO-8601 (mandatory) |
|
|
Additional note |
|
|
Event’s area |
|
|
Event’s project |
|
Note that you can either set an area
OR a project
.
The start
and end
time parameters should provide the user local time zone.
If the time zones aren’t provided, they are guessed by best effort from the previous time events' time zones.