The API endpoint for day events in DayCaptain is: https://daycaptain.com/<date-iso-8601>/day-events, e.g. https://daycaptain.com/2021-01-01/day-events
You add a day event that shows up in your day view of a specific day with the following HTTP call:
curl 'https://daycaptain.com/2022-01-01/day-events' \
-XPOST -i \
-H "Authorization: Bearer <token>" \
-H 'Content-Type: application/json' \
-d '{"string": "New year", "start": "2022-01-01", "end": "2022-01-01"}'
URL path |
Description |
Example |
|
The date in ISO-8601 |
|
JSON field |
Description |
Example |
|
Event name (mandatory) |
|
|
Event start date in ISO-8601 (mandatory) |
|
|
Event end date in ISO-8601 (inclusive, mandatory) |
|