Create a Calendar
Testing
POST
/calendars
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.aladia.io/v2/calendars' \
--header 'apikey: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "new user",
"type": "public",
"color": "indigo",
"eventDuration": 60,
"schedule": {
"monday": [
{
"startTime": "8:00",
"endTime": "9:00"
}
],
"tuesday": [
{
"startTime": "8:00",
"endTime": "9:00"
},
{
"startTime": "10:00",
"endTime": "11:00"
}
]
},
"timezone": "GMT",
"eventBaseDuration": 60
}'
Response Response Example
201 - Success
{
"id": "66fba5afd195e04a6f6137ec",
"owner": {
"id": "66fba5a3d195e04a6f6137e3",
"type": "profile"
},
"entityId": null,
"entityType": null,
"name": "user001last",
"type": "public",
"color": "#7F7309",
"eventDuration": null,
"schedule": null,
"createdAt": "Tue Oct 01 2024 10:33:03 GMT+0300 (East Africa Time)",
"updatedAt": "Tue Oct 01 2024 10:33:03 GMT+0300 (East Africa Time)",
"defaultCalendar": true,
"updatedBy": "66fba5a3d195e04a6f6137e3",
"createdBy": "66fba5a3d195e04a6f6137e3",
"timezone": "UTC",
"baseDuration": null,
"available": null
}
Request
Header Params
apikey
stringÂ
optional
Example:
{{apikey}}
Body Params application/json
Responses
Modified at 2025-04-08 10:03:27