cURL
curl --request PUT \
--url https://api.novacal.io/v1/events/{id}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cancellation_reason": "<string>"
}
'import requests
url = "https://api.novacal.io/v1/events/{id}/cancel"
payload = { "cancellation_reason": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({cancellation_reason: '<string>'})
};
fetch('https://api.novacal.io/v1/events/{id}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.novacal.io/v1/events/{id}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'cancellation_reason' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.novacal.io/v1/events/{id}/cancel"
payload := strings.NewReader("{\n \"cancellation_reason\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.novacal.io/v1/events/{id}/cancel")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"cancellation_reason\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.novacal.io/v1/events/{id}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"cancellation_reason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event_type_id": 42,
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"canceled_at": "2023-11-07T05:31:56Z",
"cancellation_reason": "<string>",
"location": "<string>",
"form_field_answers": {
"name": "John Doe",
"email": "john@example.com"
},
"status": "<string>",
"name": "<string>",
"organizer": {
"first_name": "<string>",
"last_name": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"username": "<string>",
"timezone": "<string>",
"time_format": 12,
"start_of_week": 0,
"avatar": "<string>"
},
"hosts": [
{
"first_name": "<string>",
"last_name": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"username": "<string>",
"timezone": "<string>",
"time_format": 12,
"start_of_week": 0,
"avatar": "<string>"
}
],
"booker": {
"name": "<string>",
"email": "jsmith@example.com",
"timezone": "<string>",
"time_format": 12
},
"guests": [
"jsmith@example.com"
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}Events
Cancel Event
Cancel an existing Novacal event with the API, including the required public authentication flow and optional cancellation reason payload.
PUT
/
v1
/
events
/
{id}
/
cancel
cURL
curl --request PUT \
--url https://api.novacal.io/v1/events/{id}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cancellation_reason": "<string>"
}
'import requests
url = "https://api.novacal.io/v1/events/{id}/cancel"
payload = { "cancellation_reason": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({cancellation_reason: '<string>'})
};
fetch('https://api.novacal.io/v1/events/{id}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.novacal.io/v1/events/{id}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'cancellation_reason' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.novacal.io/v1/events/{id}/cancel"
payload := strings.NewReader("{\n \"cancellation_reason\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.novacal.io/v1/events/{id}/cancel")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"cancellation_reason\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.novacal.io/v1/events/{id}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"cancellation_reason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event_type_id": 42,
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"canceled_at": "2023-11-07T05:31:56Z",
"cancellation_reason": "<string>",
"location": "<string>",
"form_field_answers": {
"name": "John Doe",
"email": "john@example.com"
},
"status": "<string>",
"name": "<string>",
"organizer": {
"first_name": "<string>",
"last_name": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"username": "<string>",
"timezone": "<string>",
"time_format": 12,
"start_of_week": 0,
"avatar": "<string>"
},
"hosts": [
{
"first_name": "<string>",
"last_name": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"username": "<string>",
"timezone": "<string>",
"time_format": 12,
"start_of_week": 0,
"avatar": "<string>"
}
],
"booker": {
"name": "<string>",
"email": "jsmith@example.com",
"timezone": "<string>",
"time_format": 12
},
"guests": [
"jsmith@example.com"
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}This endpoint requires a public API bearer token.
The authenticated API key identifies the caller integration. It does not replace the existing event booker.
When to use this endpoint
Use this endpoint to cancel a booked event from your own application or integration flow.Cancellation notes
- Pass the correct event ID for the booking you want to cancel
- Include a cancellation reason when your workflow needs to preserve context
- Use the response payload to confirm the event status after the request succeeds
Access
The authenticated user must be the organizer or a host of the event. Canceling an event you do not host returns403 access_denied.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
ID of event to cancel
Body
application/json
Event cancellation payload
Optional reason for canceling the event
Maximum string length:
255