Cancel one of the caller's own events (user)
Cancels the event on the caller's own mailbox. cancelled is true both
when the cancel just happened and when the event was already gone (a
404 during the underlying delete counts as success).
comment_delivery tells you where the optional comment actually
went: Microsoft has a native cancellation-comment field
(native_comment); Google has none, so the comment is patched into the
event's description before the delete (description_patch). Render
description_patch honestly - the organizer did not receive an
Outlook-style cancellation note, they read it in the already-cancelled
event body if they open it.
Rate limited to 15 requests/minute (throttle:calendar-write).
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>
application/jsonRequest body · application/json
Responses
dataobject
native_comment description_patch noneerrorsobject
https://cockpit.voxbi.com/api/v1/me/calendar/events/{event}/cancel
curl -X POST 'https://cockpit.voxbi.com/api/v1/me/calendar/events/{event}/cancel' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
--data '{"comment":"Sorry, something came up."}'
const response = await fetch('https://cockpit.voxbi.com/api/v1/me/calendar/events/{event}/cancel', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${YOUR_TOKEN}`,
},
body: JSON.stringify({
"comment": "Sorry, something came up."
}),
});
const data = await response.json();
console.log(data);
import requests
response = requests.post('https://cockpit.voxbi.com/api/v1/me/calendar/events/{event}/cancel',
headers={'Authorization': f'Bearer {YOUR_TOKEN}'},
json={
"comment": "Sorry, something came up."
}
)
response.raise_for_status()
data = response.json()
print(data)
<?php
$context = stream_context_create([
'http' => [
'method' => 'POST',
'header' => "Content-Type: application/json\r\nAuthorization: Bearer YOUR_TOKEN",
'content' => '{
\"comment\": \"Sorry, something came up.\"
}',
],
]);
$response = file_get_contents('https://cockpit.voxbi.com/api/v1/me/calendar/events/{event}/cancel', false, $context);
$data = json_decode($response, true);
print_r($data);
{ … }
{ … }
"data": { … }
{ … }
application/json{ … }
{ … }
60application/json