Calendars
Operations related to calendars
Retrieve a paginated list of calendars with optional filtering
Filter calendars by name (partial match)
My Calendar
Filter calendars by primary status
true
Filter calendars by read-only status
false
Page number for pagination
1
Number of items per page
10
Calendars retrieved successfully
Unauthorized - missing or invalid API key
GET /api/v1/calendars HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": [
{
"id": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"name": "My Calendar",
"description": "My personal calendar for work events",
"hexColor": "#4285f4",
"hexForegroundColor": "#ffffff",
"isPrimary": false,
"location": "New York, NY",
"timezone": "America/New_York",
"readOnly": false,
"metadata": {
"customField": "value"
},
"createdAt": "2024-07-15T09:00:00.000Z",
"updatedAt": "2024-07-15T09:30:00.000Z"
}
]
}
Create a new calendar
Name of the calendar
My Calendar
Description of the calendar
My personal calendar for work events
Hex color code for the calendar
#4285f4
Hex foreground color code for the calendar
#ffffff
Whether this is the primary calendar
false
Location associated with the calendar
New York, NY
IANA time zone database formatted string
America/New_York
Whether the calendar is read-only
false
Additional metadata for the calendar
{"customField":"value"}
Calendar created successfully
Unauthorized - missing or invalid API key
POST /api/v1/calendars HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 253
{
"name": "My Calendar",
"description": "My personal calendar for work events",
"hexColor": "#4285f4",
"hexForegroundColor": "#ffffff",
"isPrimary": false,
"location": "New York, NY",
"timezone": "America/New_York",
"readOnly": false,
"metadata": {
"customField": "value"
}
}
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": {
"id": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"name": "My Calendar",
"description": "My personal calendar for work events",
"hexColor": "#4285f4",
"hexForegroundColor": "#ffffff",
"isPrimary": false,
"location": "New York, NY",
"timezone": "America/New_York",
"readOnly": false,
"metadata": {
"customField": "value"
},
"createdAt": "2024-07-15T09:00:00.000Z",
"updatedAt": "2024-07-15T09:30:00.000Z"
}
}
Retrieve a specific calendar by its ID
Calendar ID
5516cd47-2bd0-4f4f-adc2-22524e54ba4d
Calendar retrieved successfully
Unauthorized - missing or invalid API key
GET /api/v1/calendars/{id} HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": {
"id": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"name": "My Calendar",
"description": "My personal calendar for work events",
"hexColor": "#4285f4",
"hexForegroundColor": "#ffffff",
"isPrimary": false,
"location": "New York, NY",
"timezone": "America/New_York",
"readOnly": false,
"metadata": {
"customField": "value"
},
"createdAt": "2024-07-15T09:00:00.000Z",
"updatedAt": "2024-07-15T09:30:00.000Z"
}
}
Update an existing calendar
Calendar ID
5516cd47-2bd0-4f4f-adc2-22524e54ba4d
Name of the calendar
My Updated Calendar
Description of the calendar
My updated personal calendar for work events
Hex color code for the calendar
#4285f4
Hex foreground color code for the calendar
#ffffff
Whether this is the primary calendar
false
Location associated with the calendar
New York, NY
IANA time zone database formatted string
America/New_York
Whether the calendar is read-only
false
Additional metadata for the calendar
{"customField":"value"}
Calendar updated successfully
Unauthorized - missing or invalid API key
PUT /api/v1/calendars/{id} HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 269
{
"name": "My Updated Calendar",
"description": "My updated personal calendar for work events",
"hexColor": "#4285f4",
"hexForegroundColor": "#ffffff",
"isPrimary": false,
"location": "New York, NY",
"timezone": "America/New_York",
"readOnly": false,
"metadata": {
"customField": "value"
}
}
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": {
"id": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"name": "My Calendar",
"description": "My personal calendar for work events",
"hexColor": "#4285f4",
"hexForegroundColor": "#ffffff",
"isPrimary": false,
"location": "New York, NY",
"timezone": "America/New_York",
"readOnly": false,
"metadata": {
"customField": "value"
},
"createdAt": "2024-07-15T09:00:00.000Z",
"updatedAt": "2024-07-15T09:30:00.000Z"
}
}
Delete a calendar by its ID
Calendar ID
5516cd47-2bd0-4f4f-adc2-22524e54ba4d
Calendar deleted successfully
Unauthorized - missing or invalid API key
DELETE /api/v1/calendars/{id} HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": true
}