cURL
curl --request PUT \
--url https://api.novacal.io/v1/events/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"timezone": "<string>",
"form_field_answers": {}
}
'import requests
url = "https://api.novacal.io/v1/events/{id}"
payload = {
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"timezone": "<string>",
"form_field_answers": {}
}
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({
start: '2023-11-07T05:31:56Z',
end: '2023-11-07T05:31:56Z',
timezone: '<string>',
form_field_answers: {}
})
};
fetch('https://api.novacal.io/v1/events/{id}', 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}",
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([
'start' => '2023-11-07T05:31:56Z',
'end' => '2023-11-07T05:31:56Z',
'timezone' => '<string>',
'form_field_answers' => [
]
]),
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}"
payload := strings.NewReader("{\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"timezone\": \"<string>\",\n \"form_field_answers\": {}\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}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"timezone\": \"<string>\",\n \"form_field_answers\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.novacal.io/v1/events/{id}")
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 \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"timezone\": \"<string>\",\n \"form_field_answers\": {}\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
Reschedule Event
Reschedule an existing Novacal event with the public API by updating the start time, end time, timezone, and allowed booking answers.
PUT
/
v1
/
events
/
{id}
cURL
curl --request PUT \
--url https://api.novacal.io/v1/events/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"timezone": "<string>",
"form_field_answers": {}
}
'import requests
url = "https://api.novacal.io/v1/events/{id}"
payload = {
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"timezone": "<string>",
"form_field_answers": {}
}
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({
start: '2023-11-07T05:31:56Z',
end: '2023-11-07T05:31:56Z',
timezone: '<string>',
form_field_answers: {}
})
};
fetch('https://api.novacal.io/v1/events/{id}', 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}",
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([
'start' => '2023-11-07T05:31:56Z',
'end' => '2023-11-07T05:31:56Z',
'timezone' => '<string>',
'form_field_answers' => [
]
]),
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}"
payload := strings.NewReader("{\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"timezone\": \"<string>\",\n \"form_field_answers\": {}\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}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"timezone\": \"<string>\",\n \"form_field_answers\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.novacal.io/v1/events/{id}")
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 \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"timezone\": \"<string>\",\n \"form_field_answers\": {}\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 when an existing booking needs to move to a different time or timezone without creating a brand new event record.Before you reschedule
- Confirm you are targeting the correct event ID
- Submit the updated scheduling fields you want to change
- Keep in mind that the authenticated token identifies the integration, not the attendee
Access
The authenticated user must be the organizer or a host of the event. Rescheduling an event you do not host returns403 access_denied.Authorizations
Body
application/json
Event rescheduling payload