Update a booking
curl --request PATCH \
--url https://api.spacebring.com/resources/bookings/v1/{bookingId} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"booking": {
"attendees": [
{
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
],
"endDate": "2023-11-07T05:31:56Z",
"entire": true,
"memo": "<string>",
"metadata": {},
"recurrence": [
"<string>"
],
"resourceRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"seats": 4503599627370496,
"startDate": "2023-11-07T05:31:56Z",
"title": "<string>"
},
"updateRepeatingScope": "singleOccurrence"
}
'import requests
url = "https://api.spacebring.com/resources/bookings/v1/{bookingId}"
payload = {
"booking": {
"attendees": [{ "user": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" } }],
"endDate": "2023-11-07T05:31:56Z",
"entire": True,
"memo": "<string>",
"metadata": {},
"recurrence": ["<string>"],
"resourceRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"seats": 4503599627370496,
"startDate": "2023-11-07T05:31:56Z",
"title": "<string>"
},
"updateRepeatingScope": "singleOccurrence"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
booking: {
attendees: [{user: {id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'}}],
endDate: '2023-11-07T05:31:56Z',
entire: true,
memo: '<string>',
metadata: {},
recurrence: ['<string>'],
resourceRef: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
seats: 4503599627370496,
startDate: '2023-11-07T05:31:56Z',
title: '<string>'
},
updateRepeatingScope: 'singleOccurrence'
})
};
fetch('https://api.spacebring.com/resources/bookings/v1/{bookingId}', 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.spacebring.com/resources/bookings/v1/{bookingId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'booking' => [
'attendees' => [
[
'user' => [
'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
]
],
'endDate' => '2023-11-07T05:31:56Z',
'entire' => true,
'memo' => '<string>',
'metadata' => [
],
'recurrence' => [
'<string>'
],
'resourceRef' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'seats' => 4503599627370496,
'startDate' => '2023-11-07T05:31:56Z',
'title' => '<string>'
],
'updateRepeatingScope' => 'singleOccurrence'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"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.spacebring.com/resources/bookings/v1/{bookingId}"
payload := strings.NewReader("{\n \"booking\": {\n \"attendees\": [\n {\n \"user\": {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n }\n ],\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"entire\": true,\n \"memo\": \"<string>\",\n \"metadata\": {},\n \"recurrence\": [\n \"<string>\"\n ],\n \"resourceRef\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"seats\": 4503599627370496,\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"title\": \"<string>\"\n },\n \"updateRepeatingScope\": \"singleOccurrence\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
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.patch("https://api.spacebring.com/resources/bookings/v1/{bookingId}")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"booking\": {\n \"attendees\": [\n {\n \"user\": {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n }\n ],\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"entire\": true,\n \"memo\": \"<string>\",\n \"metadata\": {},\n \"recurrence\": [\n \"<string>\"\n ],\n \"resourceRef\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"seats\": 4503599627370496,\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"title\": \"<string>\"\n },\n \"updateRepeatingScope\": \"singleOccurrence\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spacebring.com/resources/bookings/v1/{bookingId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"booking\": {\n \"attendees\": [\n {\n \"user\": {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n }\n ],\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"entire\": true,\n \"memo\": \"<string>\",\n \"metadata\": {},\n \"recurrence\": [\n \"<string>\"\n ],\n \"resourceRef\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"seats\": 4503599627370496,\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"title\": \"<string>\"\n },\n \"updateRepeatingScope\": \"singleOccurrence\"\n}"
response = http.request(request)
puts response.read_body{
"booking": {
"attendees": [
{
"membershipRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"company": {
"title": "<string>"
},
"email": "jsmith@example.com",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
}
}
],
"createDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"id": "<string>",
"resourceRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startDate": "2023-11-07T05:31:56Z",
"customer": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"company": {
"title": "<string>"
},
"email": "jsmith@example.com",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
}
},
"deleteDate": "2023-11-07T05:31:56Z",
"entire": true,
"membershipRefOwner": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"memo": "<string>",
"metadata": {},
"payment": {
"method": {
"type": "credits",
"credits": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
}
},
"dayPasses": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
}
},
"external": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
}
},
"invoice": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
},
"invoiceItemRef": "<string>",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"paymentGateway": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
},
"gateway": "authorizenet",
"label": "<string>",
"mask": "<string>",
"title": "<string>"
}
},
"createDate": "2023-11-07T05:31:56Z",
"discounts": [
{
"coupon": {
"amountOff": 123,
"currencyCode": "<string>",
"id": "<string>",
"percentOff": 123,
"productTypes": [
"<string>"
],
"type": "<string>"
},
"promocode": {
"code": "<string>",
"id": "<string>",
"expiration": {
"enabled": true,
"date": "<string>"
},
"limitByFirstPurchase": true
},
"subscriptionId": "<string>"
}
],
"dispute": {
"createDate": "2023-11-07T05:31:56Z"
},
"price": {
"type": "credits",
"credits": {
"totalAmount": 123,
"expiringAmount": 123,
"permanentAmount": 123
},
"dayPasses": {
"totalAmount": 123,
"expiringAmount": 123,
"permanentAmount": 123
},
"money": {
"grossAmount": 123,
"currencyCode": "<string>",
"taxIsInclusive": true,
"taxRate": 123
}
},
"refundable": true,
"refunds": {
"type": "credits",
"credits": [
{
"amountExpiring": 123,
"amountPermanent": 123,
"amountTotal": 123,
"amounts": [
{
"amount": 123,
"type": "expiring",
"expirationDate": "2023-11-07T05:31:56Z",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"createDate": "2023-11-07T05:31:56Z",
"id": "<string>"
}
],
"dayPasses": [
{
"amountExpiring": 123,
"amountPermanent": 123,
"amountTotal": 123,
"amounts": [
{
"amount": 123,
"type": "expiring",
"expirationDate": "2023-11-07T05:31:56Z",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"createDate": "2023-11-07T05:31:56Z",
"id": "<string>"
}
],
"money": [
{
"grossAmount": 123,
"createDate": "2023-11-07T05:31:56Z",
"currencyCode": "<string>",
"id": "<string>"
}
]
},
"request": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>"
},
"scheduleDate": "2023-11-07T05:31:56Z",
"status": "succeeded",
"surcharge": {
"money": {
"amount": 123,
"currencyCode": "<string>",
"percentage": 123,
"rate": 123
},
"type": "money"
},
"transactionRef": "<string>",
"type": "<string>"
},
"payments": [
{
"method": {
"type": "credits",
"credits": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
}
},
"dayPasses": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
}
},
"external": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
}
},
"invoice": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
},
"invoiceItemRef": "<string>",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"paymentGateway": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
},
"gateway": "authorizenet",
"label": "<string>",
"mask": "<string>",
"title": "<string>"
}
},
"createDate": "2023-11-07T05:31:56Z",
"discounts": [
{
"coupon": {
"amountOff": 123,
"currencyCode": "<string>",
"id": "<string>",
"percentOff": 123,
"productTypes": [
"<string>"
],
"type": "<string>"
},
"promocode": {
"code": "<string>",
"id": "<string>",
"expiration": {
"enabled": true,
"date": "<string>"
},
"limitByFirstPurchase": true
},
"subscriptionId": "<string>"
}
],
"dispute": {
"createDate": "2023-11-07T05:31:56Z"
},
"price": {
"type": "credits",
"credits": {
"totalAmount": 123,
"expiringAmount": 123,
"permanentAmount": 123
},
"dayPasses": {
"totalAmount": 123,
"expiringAmount": 123,
"permanentAmount": 123
},
"money": {
"grossAmount": 123,
"currencyCode": "<string>",
"taxIsInclusive": true,
"taxRate": 123
}
},
"refundable": true,
"refunds": {
"type": "credits",
"credits": [
{
"amountExpiring": 123,
"amountPermanent": 123,
"amountTotal": 123,
"amounts": [
{
"amount": 123,
"type": "expiring",
"expirationDate": "2023-11-07T05:31:56Z",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"createDate": "2023-11-07T05:31:56Z",
"id": "<string>"
}
],
"dayPasses": [
{
"amountExpiring": 123,
"amountPermanent": 123,
"amountTotal": 123,
"amounts": [
{
"amount": 123,
"type": "expiring",
"expirationDate": "2023-11-07T05:31:56Z",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"createDate": "2023-11-07T05:31:56Z",
"id": "<string>"
}
],
"money": [
{
"grossAmount": 123,
"createDate": "2023-11-07T05:31:56Z",
"currencyCode": "<string>",
"id": "<string>"
}
]
},
"request": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>"
},
"scheduleDate": "2023-11-07T05:31:56Z",
"status": "succeeded",
"surcharge": {
"money": {
"amount": 123,
"currencyCode": "<string>",
"percentage": 123,
"rate": 123
},
"type": "money"
},
"transactionRef": "<string>",
"type": "<string>"
}
],
"seats": 0,
"source": {
"type": "api",
"api": {
"clientId": "<string>"
},
"app": {},
"googleCalendar": {
"calendarId": "<string>",
"eventId": "<string>",
"eventLink": "<string>"
},
"mcp": {
"clientId": "<string>"
},
"member": {}
},
"title": "<string>",
"updateDate": "2023-11-07T05:31:56Z",
"userOwner": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"company": {
"title": "<string>"
},
"email": "jsmith@example.com",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
}
}
}{
"message": "<string>",
"type": "<string>"
}Resources
Update a booking
Update a booking. Fields left out of the request keep their current value.
OAuth
Required scopes:resourcesPATCH
/
resources
/
bookings
/
v1
/
{bookingId}
Update a booking
curl --request PATCH \
--url https://api.spacebring.com/resources/bookings/v1/{bookingId} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"booking": {
"attendees": [
{
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
],
"endDate": "2023-11-07T05:31:56Z",
"entire": true,
"memo": "<string>",
"metadata": {},
"recurrence": [
"<string>"
],
"resourceRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"seats": 4503599627370496,
"startDate": "2023-11-07T05:31:56Z",
"title": "<string>"
},
"updateRepeatingScope": "singleOccurrence"
}
'import requests
url = "https://api.spacebring.com/resources/bookings/v1/{bookingId}"
payload = {
"booking": {
"attendees": [{ "user": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" } }],
"endDate": "2023-11-07T05:31:56Z",
"entire": True,
"memo": "<string>",
"metadata": {},
"recurrence": ["<string>"],
"resourceRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"seats": 4503599627370496,
"startDate": "2023-11-07T05:31:56Z",
"title": "<string>"
},
"updateRepeatingScope": "singleOccurrence"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
booking: {
attendees: [{user: {id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'}}],
endDate: '2023-11-07T05:31:56Z',
entire: true,
memo: '<string>',
metadata: {},
recurrence: ['<string>'],
resourceRef: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
seats: 4503599627370496,
startDate: '2023-11-07T05:31:56Z',
title: '<string>'
},
updateRepeatingScope: 'singleOccurrence'
})
};
fetch('https://api.spacebring.com/resources/bookings/v1/{bookingId}', 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.spacebring.com/resources/bookings/v1/{bookingId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'booking' => [
'attendees' => [
[
'user' => [
'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
]
],
'endDate' => '2023-11-07T05:31:56Z',
'entire' => true,
'memo' => '<string>',
'metadata' => [
],
'recurrence' => [
'<string>'
],
'resourceRef' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'seats' => 4503599627370496,
'startDate' => '2023-11-07T05:31:56Z',
'title' => '<string>'
],
'updateRepeatingScope' => 'singleOccurrence'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"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.spacebring.com/resources/bookings/v1/{bookingId}"
payload := strings.NewReader("{\n \"booking\": {\n \"attendees\": [\n {\n \"user\": {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n }\n ],\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"entire\": true,\n \"memo\": \"<string>\",\n \"metadata\": {},\n \"recurrence\": [\n \"<string>\"\n ],\n \"resourceRef\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"seats\": 4503599627370496,\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"title\": \"<string>\"\n },\n \"updateRepeatingScope\": \"singleOccurrence\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
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.patch("https://api.spacebring.com/resources/bookings/v1/{bookingId}")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"booking\": {\n \"attendees\": [\n {\n \"user\": {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n }\n ],\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"entire\": true,\n \"memo\": \"<string>\",\n \"metadata\": {},\n \"recurrence\": [\n \"<string>\"\n ],\n \"resourceRef\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"seats\": 4503599627370496,\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"title\": \"<string>\"\n },\n \"updateRepeatingScope\": \"singleOccurrence\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spacebring.com/resources/bookings/v1/{bookingId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"booking\": {\n \"attendees\": [\n {\n \"user\": {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n }\n ],\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"entire\": true,\n \"memo\": \"<string>\",\n \"metadata\": {},\n \"recurrence\": [\n \"<string>\"\n ],\n \"resourceRef\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"seats\": 4503599627370496,\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"title\": \"<string>\"\n },\n \"updateRepeatingScope\": \"singleOccurrence\"\n}"
response = http.request(request)
puts response.read_body{
"booking": {
"attendees": [
{
"membershipRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"company": {
"title": "<string>"
},
"email": "jsmith@example.com",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
}
}
],
"createDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"id": "<string>",
"resourceRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startDate": "2023-11-07T05:31:56Z",
"customer": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"company": {
"title": "<string>"
},
"email": "jsmith@example.com",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
}
},
"deleteDate": "2023-11-07T05:31:56Z",
"entire": true,
"membershipRefOwner": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"memo": "<string>",
"metadata": {},
"payment": {
"method": {
"type": "credits",
"credits": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
}
},
"dayPasses": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
}
},
"external": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
}
},
"invoice": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
},
"invoiceItemRef": "<string>",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"paymentGateway": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
},
"gateway": "authorizenet",
"label": "<string>",
"mask": "<string>",
"title": "<string>"
}
},
"createDate": "2023-11-07T05:31:56Z",
"discounts": [
{
"coupon": {
"amountOff": 123,
"currencyCode": "<string>",
"id": "<string>",
"percentOff": 123,
"productTypes": [
"<string>"
],
"type": "<string>"
},
"promocode": {
"code": "<string>",
"id": "<string>",
"expiration": {
"enabled": true,
"date": "<string>"
},
"limitByFirstPurchase": true
},
"subscriptionId": "<string>"
}
],
"dispute": {
"createDate": "2023-11-07T05:31:56Z"
},
"price": {
"type": "credits",
"credits": {
"totalAmount": 123,
"expiringAmount": 123,
"permanentAmount": 123
},
"dayPasses": {
"totalAmount": 123,
"expiringAmount": 123,
"permanentAmount": 123
},
"money": {
"grossAmount": 123,
"currencyCode": "<string>",
"taxIsInclusive": true,
"taxRate": 123
}
},
"refundable": true,
"refunds": {
"type": "credits",
"credits": [
{
"amountExpiring": 123,
"amountPermanent": 123,
"amountTotal": 123,
"amounts": [
{
"amount": 123,
"type": "expiring",
"expirationDate": "2023-11-07T05:31:56Z",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"createDate": "2023-11-07T05:31:56Z",
"id": "<string>"
}
],
"dayPasses": [
{
"amountExpiring": 123,
"amountPermanent": 123,
"amountTotal": 123,
"amounts": [
{
"amount": 123,
"type": "expiring",
"expirationDate": "2023-11-07T05:31:56Z",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"createDate": "2023-11-07T05:31:56Z",
"id": "<string>"
}
],
"money": [
{
"grossAmount": 123,
"createDate": "2023-11-07T05:31:56Z",
"currencyCode": "<string>",
"id": "<string>"
}
]
},
"request": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>"
},
"scheduleDate": "2023-11-07T05:31:56Z",
"status": "succeeded",
"surcharge": {
"money": {
"amount": 123,
"currencyCode": "<string>",
"percentage": 123,
"rate": 123
},
"type": "money"
},
"transactionRef": "<string>",
"type": "<string>"
},
"payments": [
{
"method": {
"type": "credits",
"credits": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
}
},
"dayPasses": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
}
},
"external": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
}
},
"invoice": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
},
"invoiceItemRef": "<string>",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"paymentGateway": {
"customer": {
"type": "company",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"name": "<string>",
"surname": "<string>",
"title": "<string>"
},
"gateway": "authorizenet",
"label": "<string>",
"mask": "<string>",
"title": "<string>"
}
},
"createDate": "2023-11-07T05:31:56Z",
"discounts": [
{
"coupon": {
"amountOff": 123,
"currencyCode": "<string>",
"id": "<string>",
"percentOff": 123,
"productTypes": [
"<string>"
],
"type": "<string>"
},
"promocode": {
"code": "<string>",
"id": "<string>",
"expiration": {
"enabled": true,
"date": "<string>"
},
"limitByFirstPurchase": true
},
"subscriptionId": "<string>"
}
],
"dispute": {
"createDate": "2023-11-07T05:31:56Z"
},
"price": {
"type": "credits",
"credits": {
"totalAmount": 123,
"expiringAmount": 123,
"permanentAmount": 123
},
"dayPasses": {
"totalAmount": 123,
"expiringAmount": 123,
"permanentAmount": 123
},
"money": {
"grossAmount": 123,
"currencyCode": "<string>",
"taxIsInclusive": true,
"taxRate": 123
}
},
"refundable": true,
"refunds": {
"type": "credits",
"credits": [
{
"amountExpiring": 123,
"amountPermanent": 123,
"amountTotal": 123,
"amounts": [
{
"amount": 123,
"type": "expiring",
"expirationDate": "2023-11-07T05:31:56Z",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"createDate": "2023-11-07T05:31:56Z",
"id": "<string>"
}
],
"dayPasses": [
{
"amountExpiring": 123,
"amountPermanent": 123,
"amountTotal": 123,
"amounts": [
{
"amount": 123,
"type": "expiring",
"expirationDate": "2023-11-07T05:31:56Z",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"createDate": "2023-11-07T05:31:56Z",
"id": "<string>"
}
],
"money": [
{
"grossAmount": 123,
"createDate": "2023-11-07T05:31:56Z",
"currencyCode": "<string>",
"id": "<string>"
}
]
},
"request": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>"
},
"scheduleDate": "2023-11-07T05:31:56Z",
"status": "succeeded",
"surcharge": {
"money": {
"amount": 123,
"currencyCode": "<string>",
"percentage": 123,
"rate": 123
},
"type": "money"
},
"transactionRef": "<string>",
"type": "<string>"
}
],
"seats": 0,
"source": {
"type": "api",
"api": {
"clientId": "<string>"
},
"app": {},
"googleCalendar": {
"calendarId": "<string>",
"eventId": "<string>",
"eventLink": "<string>"
},
"mcp": {
"clientId": "<string>"
},
"member": {}
},
"title": "<string>",
"updateDate": "2023-11-07T05:31:56Z",
"userOwner": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"company": {
"title": "<string>"
},
"email": "jsmith@example.com",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
}
}
}{
"message": "<string>",
"type": "<string>"
}Authorizations
BasicAuthOAuth2
See our authentication documentation for how to authorize your requests
Headers
The id of the network. Required when using bearer token authentication
Path Parameters
ID of the booking. For a single occurrence of a repeating booking, append the occurrence date: <bookingId>_<ISO date>.
Body
application/json
Booking fields to update. Fields left out keep their current value.
Show child attributes
Show child attributes
For a repeating booking, whether to update only the addressed occurrence or that one and every later occurrence.
Available options:
singleOccurrence, thisAndNext Response
OK
The booking.
Show child attributes
Show child attributes
Was this page helpful?