Calendars
Operations related to calendars
Retrieve a paginated list of calendars with optional filtering
Filter calendars by name (partial match)
My CalendarFilter calendars by primary status
trueFilter calendars by read-only status
falsePage number for pagination
1Number of items per page
10Calendars 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 CalendarDescription of the calendar
My personal calendar for work eventsHex color code for the calendar
#4285f4Hex foreground color code for the calendar
#ffffffWhether this is the primary calendar
falseLocation associated with the calendar
New York, NYIANA time zone database formatted string
America/New_YorkWhether the calendar is read-only
falseAdditional 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-22524e54ba4dCalendar 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-22524e54ba4dName of the calendar
My Updated CalendarDescription of the calendar
My updated personal calendar for work eventsHex color code for the calendar
#4285f4Hex foreground color code for the calendar
#ffffffWhether this is the primary calendar
falseLocation associated with the calendar
New York, NYIANA time zone database formatted string
America/New_YorkWhether the calendar is read-only
falseAdditional 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-22524e54ba4dCalendar 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
}Última actualización
