Skip to content

Update a calendar subscription

HTTP: bearerAuth

User bearer token. Default authentication for customer-facing endpoints. Obtain a token by calling POST /login with your credentials, then send it on every subsequent request as Authorization: Bearer <token>. The token inherits the permissions and PBX scope of the authenticated user.

HTTP Authorization Scheme
bearer
Bearer format
Bearer <token>

Request body · required · application/json

Request schema
namestring
length: 0–120
colorstring
isVisibleboolean

Responses

Updated subscription
Response schema
id*string · uuid
name*string
color*string
enum: teal cyan blue indigo magenta pink rose red orange amber brown olive green slate
isVisible*boolean
maskedUrl*string
example: example.com…
lastSuccessfulRefreshAt*string | null · date-time
lastAttemptAt*string | null · date-time
status*string
enum: ok stale failing
errorCode*string | null
enum: invalid_url unreachable needs_sign_in not_a_calendar too_large null
Subscription not found
Response schema
No response body.
Invalid input
Response schema
No response body.
patch https://cockpit.voxbi.com/api/v1/calendar-subscriptions/{id}
Base URL
Request sample
curl -X PATCH 'https://cockpit.voxbi.com/api/v1/calendar-subscriptions/{id}' \
  -H 'Authorization: Bearer YOUR_TOKEN'
const response = await fetch('https://cockpit.voxbi.com/api/v1/calendar-subscriptions/{id}', {
  method: 'PATCH',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': `Bearer ${YOUR_TOKEN}`,
  },
});

const data = await response.json();
console.log(data);
import requests

response = requests.patch('https://cockpit.voxbi.com/api/v1/calendar-subscriptions/{id}',
    headers={'Authorization': f'Bearer {YOUR_TOKEN}'}
)
response.raise_for_status()
data = response.json()
print(data)
<?php
$context = stream_context_create([
    'http' => [
        'method'  => 'PATCH',
        'header'  => "Content-Type: application/json\r\nAuthorization: Bearer YOUR_TOKEN",
    ],
]);

$response = file_get_contents('https://cockpit.voxbi.com/api/v1/calendar-subscriptions/{id}', false, $context);
$data = json_decode($response, true);
print_r($data);
Sample request
No request example provided.
No example for this status.
No example for this status.
No example for this status.