Cancel Call
curl --request PUT \
--url http://localhost:4000/v1/eventCalls/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": 123,
"cancelReason": "<string>"
}
'import requests
url = "http://localhost:4000/v1/eventCalls/cancel"
payload = {
"id": 123,
"cancelReason": "<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({id: 123, cancelReason: '<string>'})
};
fetch('http://localhost:4000/v1/eventCalls/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_PORT => "4000",
CURLOPT_URL => "http://localhost:4000/v1/eventCalls/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([
'id' => 123,
'cancelReason' => '<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 := "http://localhost:4000/v1/eventCalls/cancel"
payload := strings.NewReader("{\n \"id\": 123,\n \"cancelReason\": \"<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("http://localhost:4000/v1/eventCalls/cancel")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"id\": 123,\n \"cancelReason\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:4000/v1/eventCalls/cancel")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": 123,\n \"cancelReason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"eventCall": {
"id": 123,
"eventId": 123,
"dateTime": "<string>",
"callId": 123,
"isSlotFree": true,
"overBooked": 123,
"totalOverBooked": 123,
"SettedClaim": {
"id": 123,
"claimStatus": "<string>",
"outcome": "<string>",
"user": {
"id": 123,
"firstName": "<string>",
"lastName": "<string>",
"profilePictureKey": "<string>",
"signedUrl": "<string>"
}
},
"deals": [
{
"id": 123,
"value": 123,
"time": "<string>",
"transactionType": "<string>",
"product": {
"id": 123,
"name": "<string>"
},
"Transaction": {
"id": 123
}
}
],
"deletedAt": "<string>",
"locationLink": "<string>",
"locationLinkInvitee": "<string>",
"cancelReason": "<string>",
"location": "<string>",
"isCalendarConnected": true,
"isZoomConnected": true,
"rescheduledBy": "<string>",
"rescheduleReason": "<string>",
"googleResponseStatus": "<string>",
"dateTimeUTC": "<string>",
"userId": 123,
"firstName": "<string>",
"lastName": "<string>",
"notes": "<string>",
"allowReschedule": true,
"cancelledBy": "<string>",
"email": "<string>",
"taskId": 123,
"task": [
{
"id": 123,
"completed": true,
"outcome": "<string>",
"noSaleReason": "<string>",
"objection": "<string>",
"notes": "<string>"
}
],
"contactId": 123,
"utm": [
{
"utmKey": "<string>",
"utmValue": "<string>"
}
],
"color": "<string>",
"name": "<string>",
"duration": 123,
"durationUnit": "<string>",
"linkPassword": "<string>",
"eventDeletedAt": "<string>",
"internalDescription": "<string>",
"linkPrefix": "<string>",
"previewId": "<string>",
"inviteeEmail": "<string>",
"inviteeName": "<string>",
"phoneNumber": "<string>",
"inviteTimeZone": "<string>",
"inviteeSecondaryEmail": "<string>",
"inviteeSecondaryPhone": "<string>",
"questions": [
{
"statement": "<string>",
"answer": "<string>"
}
],
"secondaryAnswers": [
{
"statement": "<string>",
"isSecondaryQuestion": true,
"answer": {
"inputType": "<string>",
"answer": "<string>",
"date": "<string>",
"userId": 123,
"number": 123,
"user": {
"firstName": "<string>",
"lastName": "<string>"
}
}
}
],
"callType": "<string>",
"userAvailabilityTimezone": "<string>",
"slotFreeEnabled": true,
"emailValidationResult": "<string>"
}
}
}Calls
Cancel Call
Cancel a scheduled event call
PUT
/
v1
/
eventCalls
/
cancel
Cancel Call
curl --request PUT \
--url http://localhost:4000/v1/eventCalls/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": 123,
"cancelReason": "<string>"
}
'import requests
url = "http://localhost:4000/v1/eventCalls/cancel"
payload = {
"id": 123,
"cancelReason": "<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({id: 123, cancelReason: '<string>'})
};
fetch('http://localhost:4000/v1/eventCalls/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_PORT => "4000",
CURLOPT_URL => "http://localhost:4000/v1/eventCalls/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([
'id' => 123,
'cancelReason' => '<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 := "http://localhost:4000/v1/eventCalls/cancel"
payload := strings.NewReader("{\n \"id\": 123,\n \"cancelReason\": \"<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("http://localhost:4000/v1/eventCalls/cancel")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"id\": 123,\n \"cancelReason\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:4000/v1/eventCalls/cancel")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": 123,\n \"cancelReason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"eventCall": {
"id": 123,
"eventId": 123,
"dateTime": "<string>",
"callId": 123,
"isSlotFree": true,
"overBooked": 123,
"totalOverBooked": 123,
"SettedClaim": {
"id": 123,
"claimStatus": "<string>",
"outcome": "<string>",
"user": {
"id": 123,
"firstName": "<string>",
"lastName": "<string>",
"profilePictureKey": "<string>",
"signedUrl": "<string>"
}
},
"deals": [
{
"id": 123,
"value": 123,
"time": "<string>",
"transactionType": "<string>",
"product": {
"id": 123,
"name": "<string>"
},
"Transaction": {
"id": 123
}
}
],
"deletedAt": "<string>",
"locationLink": "<string>",
"locationLinkInvitee": "<string>",
"cancelReason": "<string>",
"location": "<string>",
"isCalendarConnected": true,
"isZoomConnected": true,
"rescheduledBy": "<string>",
"rescheduleReason": "<string>",
"googleResponseStatus": "<string>",
"dateTimeUTC": "<string>",
"userId": 123,
"firstName": "<string>",
"lastName": "<string>",
"notes": "<string>",
"allowReschedule": true,
"cancelledBy": "<string>",
"email": "<string>",
"taskId": 123,
"task": [
{
"id": 123,
"completed": true,
"outcome": "<string>",
"noSaleReason": "<string>",
"objection": "<string>",
"notes": "<string>"
}
],
"contactId": 123,
"utm": [
{
"utmKey": "<string>",
"utmValue": "<string>"
}
],
"color": "<string>",
"name": "<string>",
"duration": 123,
"durationUnit": "<string>",
"linkPassword": "<string>",
"eventDeletedAt": "<string>",
"internalDescription": "<string>",
"linkPrefix": "<string>",
"previewId": "<string>",
"inviteeEmail": "<string>",
"inviteeName": "<string>",
"phoneNumber": "<string>",
"inviteTimeZone": "<string>",
"inviteeSecondaryEmail": "<string>",
"inviteeSecondaryPhone": "<string>",
"questions": [
{
"statement": "<string>",
"answer": "<string>"
}
],
"secondaryAnswers": [
{
"statement": "<string>",
"isSecondaryQuestion": true,
"answer": {
"inputType": "<string>",
"answer": "<string>",
"date": "<string>",
"userId": 123,
"number": 123,
"user": {
"firstName": "<string>",
"lastName": "<string>"
}
}
}
],
"callType": "<string>",
"userAvailabilityTimezone": "<string>",
"slotFreeEnabled": true,
"emailValidationResult": "<string>"
}
}
}⌘I