Events
Update an event table
Configures seating capacity and an optional existing donor host. Omitted fields are preserved when updating. Requires the event management capability; all referenced records must belong to this event and organization.
PUT
/
admin
/
events
/
{eventId}
/
tables
/
{id}
Update an event table
curl --request PUT \
--url https://api.gratona.com/v1/admin/events/{eventId}/tables/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Annual Gala",
"section": "Example",
"capacity": 1,
"host_donor_id": 1,
"sort_order": 1,
"notes": "Example"
}
'import requests
url = "https://api.gratona.com/v1/admin/events/{eventId}/tables/{id}"
payload = {
"name": "Annual Gala",
"section": "Example",
"capacity": 1,
"host_donor_id": 1,
"sort_order": 1,
"notes": "Example"
}
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({
name: 'Annual Gala',
section: 'Example',
capacity: 1,
host_donor_id: 1,
sort_order: 1,
notes: 'Example'
})
};
fetch('https://api.gratona.com/v1/admin/events/{eventId}/tables/{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.gratona.com/v1/admin/events/{eventId}/tables/{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([
'name' => 'Annual Gala',
'section' => 'Example',
'capacity' => 1,
'host_donor_id' => 1,
'sort_order' => 1,
'notes' => 'Example'
]),
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.gratona.com/v1/admin/events/{eventId}/tables/{id}"
payload := strings.NewReader("{\n \"name\": \"Annual Gala\",\n \"section\": \"Example\",\n \"capacity\": 1,\n \"host_donor_id\": 1,\n \"sort_order\": 1,\n \"notes\": \"Example\"\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.gratona.com/v1/admin/events/{eventId}/tables/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Annual Gala\",\n \"section\": \"Example\",\n \"capacity\": 1,\n \"host_donor_id\": 1,\n \"sort_order\": 1,\n \"notes\": \"Example\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gratona.com/v1/admin/events/{eventId}/tables/{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 \"name\": \"Annual Gala\",\n \"section\": \"Example\",\n \"capacity\": 1,\n \"host_donor_id\": 1,\n \"sort_order\": 1,\n \"notes\": \"Example\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": 1,
"client_id": 1,
"event_id": 1,
"name": "Annual Gala",
"section": "Example",
"capacity": 1,
"host_donor_id": 1,
"sort_order": 1,
"notes": "Example",
"created_at": "2026-10-20T12:00:00Z",
"updated_at": "2026-10-20T12:00:00Z",
"deleted_at": "2026-10-20T12:00:00Z",
"attendees_count": 42
}
}{
"message": "Something went wrong. Please try again.",
"status": "error",
"error": "invalid_request",
"code": "DONOR_NOT_FOUND"
}{
"message": "Something went wrong. Please try again.",
"status": "error",
"error": "invalid_request",
"code": "DONOR_NOT_FOUND"
}{
"message": "Not Found",
"status": "error"
}{
"errors": {},
"status": "error",
"message": "The given data was invalid."
}Authorizations
bearerAuthapiKeyAuth
Passport bearer token authentication for legacy admin sessions.
Path Parameters
Record ID in the authenticated organization.
Example:
42
Journey ID in the authenticated organization.
Example:
42
Body
application/json
Name.
Maximum string length:
255Example:
"Annual Gala"
Section.
Maximum string length:
255Example:
"Example"
Capacity.
Required range:
x >= 1Example:
1
Host donor id. Referenced record must belong to the authenticated organization.
Example:
1
Sort order.
Example:
1
Notes.
Example:
"Example"
Response
Update an event table completed.
Show child attributes
Show child attributes
⌘I
Update an event table
curl --request PUT \
--url https://api.gratona.com/v1/admin/events/{eventId}/tables/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Annual Gala",
"section": "Example",
"capacity": 1,
"host_donor_id": 1,
"sort_order": 1,
"notes": "Example"
}
'import requests
url = "https://api.gratona.com/v1/admin/events/{eventId}/tables/{id}"
payload = {
"name": "Annual Gala",
"section": "Example",
"capacity": 1,
"host_donor_id": 1,
"sort_order": 1,
"notes": "Example"
}
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({
name: 'Annual Gala',
section: 'Example',
capacity: 1,
host_donor_id: 1,
sort_order: 1,
notes: 'Example'
})
};
fetch('https://api.gratona.com/v1/admin/events/{eventId}/tables/{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.gratona.com/v1/admin/events/{eventId}/tables/{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([
'name' => 'Annual Gala',
'section' => 'Example',
'capacity' => 1,
'host_donor_id' => 1,
'sort_order' => 1,
'notes' => 'Example'
]),
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.gratona.com/v1/admin/events/{eventId}/tables/{id}"
payload := strings.NewReader("{\n \"name\": \"Annual Gala\",\n \"section\": \"Example\",\n \"capacity\": 1,\n \"host_donor_id\": 1,\n \"sort_order\": 1,\n \"notes\": \"Example\"\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.gratona.com/v1/admin/events/{eventId}/tables/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Annual Gala\",\n \"section\": \"Example\",\n \"capacity\": 1,\n \"host_donor_id\": 1,\n \"sort_order\": 1,\n \"notes\": \"Example\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gratona.com/v1/admin/events/{eventId}/tables/{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 \"name\": \"Annual Gala\",\n \"section\": \"Example\",\n \"capacity\": 1,\n \"host_donor_id\": 1,\n \"sort_order\": 1,\n \"notes\": \"Example\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": 1,
"client_id": 1,
"event_id": 1,
"name": "Annual Gala",
"section": "Example",
"capacity": 1,
"host_donor_id": 1,
"sort_order": 1,
"notes": "Example",
"created_at": "2026-10-20T12:00:00Z",
"updated_at": "2026-10-20T12:00:00Z",
"deleted_at": "2026-10-20T12:00:00Z",
"attendees_count": 42
}
}{
"message": "Something went wrong. Please try again.",
"status": "error",
"error": "invalid_request",
"code": "DONOR_NOT_FOUND"
}{
"message": "Something went wrong. Please try again.",
"status": "error",
"error": "invalid_request",
"code": "DONOR_NOT_FOUND"
}{
"message": "Not Found",
"status": "error"
}{
"errors": {},
"status": "error",
"message": "The given data was invalid."
}