Create an Event
Testing
POST
/calendars/{calendarId}/events
{
"frequency": {
"type": "does-not-repeat"
}
}
2.
{
"frequency": {
"type": "daily",
"endDate": "2024-05-29T12:34:56+03:00"
}
}
3.
{
"frequency": {
"type": "custom",
"periodicity": "day",
"counter": 1,
"endDate": "2024-05-29T12:34:56+03:00"
}
}
{
"frequency": {
"type": "custom",
"periodicity": "week",
"counter": 1,
"days": [3, 4, 5],
"endDate": "2024-05-29T12:34:56+03:00"
}
}
{
"frequency": {
"type": "custom",
"periodicity": "month",
"counter": 1,
"monthlySelection": "specific-day-of-month",
"endDate": "2024-05-29T12:34:56+03:00"
}
}
{
"frequency": {
"type": "custom",
"periodicity": "month",
"counter": 1,
"monthlySelection": "specific-weekday-of-month",
"endDate": "2024-05-29T12:34:56+03:00"
}
}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.aladia.io/v2/calendars//events' \
--header 'apikey: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "one",
"dates": {
"startDate": "2024-07-08T10:45:00.000+03:00",
"endDate": "2024-07-08T11:45:00.000+03:00"
},
"description": "tell them",
"frequency": {
"type": "daily",
"endDate": "2024-07-12T12:34:56+03:00"
},
"discription": "this is the new event",
"sharedCalendars": [
"668ce000b65a4607e140bb01",
"668c0a0936fe1e5abb8601a9"
]
}'
Response Response Example
201 - Success
{
"id": "6683d08961cd35c5d029d657",
"calendarId": "66819a7930cf852d849d3b1d",
"name": "metafile",
"description": null,
"dates": {
"startDate": "2024-05-24T09:34:56.000Z",
"endDate": "2024-05-24T12:34:56.000Z"
},
"frequency": {
"type": "daily",
"endDate": "2024-05-29T12:34:56+03:00"
},
"onPremise": null,
"onLive": {
"roomId": "6688e5bd1ee4d1bb25a3d76a"
},
"members": [
{
"profileId": "6682554f41d2befed7040d7b",
"role": "host",
"picture": null,
"fullName": "salasa salsa"
}
],
"createdAt": "2024-07-02T10:03:53.399Z",
"updatedAt": "2024-07-02T10:03:53.399Z",
"updatedBy": "6682554f41d2befed7040d7b",
"parentId": null,
"createdBy": "6682554f41d2befed7040d7b",
"entityId": null,
"entityType": null,
"sharedCalendars": [],
"attachments": [
{
"metadata": {
"name": "flower-lily",
"mimetype": "image/jpeg",
"size": 112984
},
"url": "https://storage.googleapis.com/76324282-3715-40d4-b113-8d8f07f8647e/6683d08661cd35c5d029d653?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=bucket%40backend-test-aladia.iam.gserviceaccount.com%2F20240702%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20240702T100354Z&X-Goog-Expires=3600&X-Goog-SignedHeaders=host&X-Goog-Signature=50a2de25133716243a28119c0cb836b04bcbcfc310ca8c14bf03e58d3ec9fb7fb26abb4ebd5aa0c7f970ea92e91cd7357aed9e42cc8c5723743bd5b7808fdabf3cce56d670a79dbaab0d997f422204d0c1e707c97b33f7e02dc26c230003a417eda1e211cfe04d5423207e4b1bad516bb67c4122af08e23929783f0d499506ead38f171d9fcf6102a6571936993976eb18bf3e4cd0f9f8c006437ad15cbdb7dee85b401e09a5afbbde6a9d3f5bab66188f47c4458c8759589f971914f19920e63412085649ec673562bbc5bb5cff6871d48cbd506185715b826f018b1a60169128a4fea0a437169e790de0bd063281b68be26c9c95c1573688988cd118fc6dc9"
}
]
}
Request
Path Params
calendarId
stringÂ
required
Header Params
apikey
stringÂ
optional
Example:
{{apikey}}
Body Params application/json
Responses
Modified at 2025-04-08 10:10:59