AladiaDocs
Api referenceCalendars

Create a calendar

POST
/v2/calendars
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/v2/calendars" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "color": "string",    "request": {}  }'
{  "id": "string",  "owner": {},  "name": "string",  "type": "string",  "color": "string",  "eventDuration": 0,  "schedule": {},  "createdAt": "string",  "updatedAt": "string",  "defaultCalendar": true,  "isScheduleEnforced": true,  "entity": "course",  "updatedBy": "string",  "createdBy": "string",  "timezone": "string",  "baseDuration": 0,  "available": true,  "entityId": "string"}