Response
Sample response →
[
{
"id": "EVENT-ID",
"assignedToUserId": null,
"startDate": "2021-01-01",
"endDate": "2021-01-08",
"eventType": "personal-vacation",
"userId": "USER-ID"
"momentCreated": "2020-10-13T18:56:19",
"name": "Alex vacation",
"notes": null,
"projectId": null
},
...
]
Response
Sample response →
{
"id": "EVENT-ID",
"assignedToUserId": null,
"startDate": "2021-01-01",
"endDate": "2021-01-08",
"eventType": "personal-vacation",
"userId": "USER-ID"
"momentCreated": "2020-10-13T18:56:19",
"name": "Alex vacation",
"notes": null,
"projectId": null
}
Sample CURL →
curl -X POST
https://api.goodday.work/2.0/events
-H "Content-Type: application/json"
-H "gd-api-token: AUTH-TOKEN"
-d '{
"createdByUserId": "USER-ID",
"eventTYpe": "personal-vacation",
"name": "Alex vacation",
"userId": "USER-ID"
"startDate": "2020-09-25",
"endDate": "2020-09-27"
}'
Response
Sample response →
{
"id": "EVENT-ID",
"assignedToUserId": null,
"startDate": "2021-01-01",
"endDate": "2021-01-08",
"eventType": "personal-vacation",
"userId": "USER-ID"
"momentCreated": "2020-10-13T18:56:19",
"name": "Alex vacation",
"notes": null,
"projectId": null
}