Update Event
curl --request PATCH \
--url https://api.sublay.io/v7/:projectId/events/:eventId \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"startTime": "<string>",
"endTime": "<string>",
"timezone": "<string>",
"type": "<string>",
"url": "<string>",
"venueName": "<string>",
"address": "<string>",
"location": {},
"visibility": "<string>",
"capacity": 123,
"allowMaybe": true,
"guestListVisible": true,
"metadata": {},
"removeImageIds": [
"<string>"
],
"cover.options": "<string>",
"gallery": [
null
],
"gallery.options": "<string>"
}
'import requests
url = "https://api.sublay.io/v7/:projectId/events/:eventId"
payload = {
"title": "<string>",
"description": "<string>",
"startTime": "<string>",
"endTime": "<string>",
"timezone": "<string>",
"type": "<string>",
"url": "<string>",
"venueName": "<string>",
"address": "<string>",
"location": {},
"visibility": "<string>",
"capacity": 123,
"allowMaybe": True,
"guestListVisible": True,
"metadata": {},
"removeImageIds": ["<string>"],
"cover.options": "<string>",
"gallery": [None],
"gallery.options": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
description: '<string>',
startTime: '<string>',
endTime: '<string>',
timezone: '<string>',
type: '<string>',
url: '<string>',
venueName: '<string>',
address: '<string>',
location: {},
visibility: '<string>',
capacity: 123,
allowMaybe: true,
guestListVisible: true,
metadata: {},
removeImageIds: ['<string>'],
'cover.options': '<string>',
gallery: [null],
'gallery.options': '<string>'
})
};
fetch('https://api.sublay.io/v7/:projectId/events/:eventId', 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.sublay.io/v7/:projectId/events/:eventId",
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([
'title' => '<string>',
'description' => '<string>',
'startTime' => '<string>',
'endTime' => '<string>',
'timezone' => '<string>',
'type' => '<string>',
'url' => '<string>',
'venueName' => '<string>',
'address' => '<string>',
'location' => [
],
'visibility' => '<string>',
'capacity' => 123,
'allowMaybe' => true,
'guestListVisible' => true,
'metadata' => [
],
'removeImageIds' => [
'<string>'
],
'cover.options' => '<string>',
'gallery' => [
null
],
'gallery.options' => '<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.sublay.io/v7/:projectId/events/:eventId"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"startTime\": \"<string>\",\n \"endTime\": \"<string>\",\n \"timezone\": \"<string>\",\n \"type\": \"<string>\",\n \"url\": \"<string>\",\n \"venueName\": \"<string>\",\n \"address\": \"<string>\",\n \"location\": {},\n \"visibility\": \"<string>\",\n \"capacity\": 123,\n \"allowMaybe\": true,\n \"guestListVisible\": true,\n \"metadata\": {},\n \"removeImageIds\": [\n \"<string>\"\n ],\n \"cover.options\": \"<string>\",\n \"gallery\": [\n null\n ],\n \"gallery.options\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.sublay.io/v7/:projectId/events/:eventId")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"startTime\": \"<string>\",\n \"endTime\": \"<string>\",\n \"timezone\": \"<string>\",\n \"type\": \"<string>\",\n \"url\": \"<string>\",\n \"venueName\": \"<string>\",\n \"address\": \"<string>\",\n \"location\": {},\n \"visibility\": \"<string>\",\n \"capacity\": 123,\n \"allowMaybe\": true,\n \"guestListVisible\": true,\n \"metadata\": {},\n \"removeImageIds\": [\n \"<string>\"\n ],\n \"cover.options\": \"<string>\",\n \"gallery\": [\n null\n ],\n \"gallery.options\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sublay.io/v7/:projectId/events/:eventId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"startTime\": \"<string>\",\n \"endTime\": \"<string>\",\n \"timezone\": \"<string>\",\n \"type\": \"<string>\",\n \"url\": \"<string>\",\n \"venueName\": \"<string>\",\n \"address\": \"<string>\",\n \"location\": {},\n \"visibility\": \"<string>\",\n \"capacity\": 123,\n \"allowMaybe\": true,\n \"guestListVisible\": true,\n \"metadata\": {},\n \"removeImageIds\": [\n \"<string>\"\n ],\n \"cover.options\": \"<string>\",\n \"gallery\": [\n null\n ],\n \"gallery.options\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyEvent Endpoints
Update Event
Edit an event’s mutable fields and curate its images (host-only)
Update Event
curl --request PATCH \
--url https://api.sublay.io/v7/:projectId/events/:eventId \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"startTime": "<string>",
"endTime": "<string>",
"timezone": "<string>",
"type": "<string>",
"url": "<string>",
"venueName": "<string>",
"address": "<string>",
"location": {},
"visibility": "<string>",
"capacity": 123,
"allowMaybe": true,
"guestListVisible": true,
"metadata": {},
"removeImageIds": [
"<string>"
],
"cover.options": "<string>",
"gallery": [
null
],
"gallery.options": "<string>"
}
'import requests
url = "https://api.sublay.io/v7/:projectId/events/:eventId"
payload = {
"title": "<string>",
"description": "<string>",
"startTime": "<string>",
"endTime": "<string>",
"timezone": "<string>",
"type": "<string>",
"url": "<string>",
"venueName": "<string>",
"address": "<string>",
"location": {},
"visibility": "<string>",
"capacity": 123,
"allowMaybe": True,
"guestListVisible": True,
"metadata": {},
"removeImageIds": ["<string>"],
"cover.options": "<string>",
"gallery": [None],
"gallery.options": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
description: '<string>',
startTime: '<string>',
endTime: '<string>',
timezone: '<string>',
type: '<string>',
url: '<string>',
venueName: '<string>',
address: '<string>',
location: {},
visibility: '<string>',
capacity: 123,
allowMaybe: true,
guestListVisible: true,
metadata: {},
removeImageIds: ['<string>'],
'cover.options': '<string>',
gallery: [null],
'gallery.options': '<string>'
})
};
fetch('https://api.sublay.io/v7/:projectId/events/:eventId', 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.sublay.io/v7/:projectId/events/:eventId",
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([
'title' => '<string>',
'description' => '<string>',
'startTime' => '<string>',
'endTime' => '<string>',
'timezone' => '<string>',
'type' => '<string>',
'url' => '<string>',
'venueName' => '<string>',
'address' => '<string>',
'location' => [
],
'visibility' => '<string>',
'capacity' => 123,
'allowMaybe' => true,
'guestListVisible' => true,
'metadata' => [
],
'removeImageIds' => [
'<string>'
],
'cover.options' => '<string>',
'gallery' => [
null
],
'gallery.options' => '<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.sublay.io/v7/:projectId/events/:eventId"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"startTime\": \"<string>\",\n \"endTime\": \"<string>\",\n \"timezone\": \"<string>\",\n \"type\": \"<string>\",\n \"url\": \"<string>\",\n \"venueName\": \"<string>\",\n \"address\": \"<string>\",\n \"location\": {},\n \"visibility\": \"<string>\",\n \"capacity\": 123,\n \"allowMaybe\": true,\n \"guestListVisible\": true,\n \"metadata\": {},\n \"removeImageIds\": [\n \"<string>\"\n ],\n \"cover.options\": \"<string>\",\n \"gallery\": [\n null\n ],\n \"gallery.options\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.sublay.io/v7/:projectId/events/:eventId")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"startTime\": \"<string>\",\n \"endTime\": \"<string>\",\n \"timezone\": \"<string>\",\n \"type\": \"<string>\",\n \"url\": \"<string>\",\n \"venueName\": \"<string>\",\n \"address\": \"<string>\",\n \"location\": {},\n \"visibility\": \"<string>\",\n \"capacity\": 123,\n \"allowMaybe\": true,\n \"guestListVisible\": true,\n \"metadata\": {},\n \"removeImageIds\": [\n \"<string>\"\n ],\n \"cover.options\": \"<string>\",\n \"gallery\": [\n null\n ],\n \"gallery.options\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sublay.io/v7/:projectId/events/:eventId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"startTime\": \"<string>\",\n \"endTime\": \"<string>\",\n \"timezone\": \"<string>\",\n \"type\": \"<string>\",\n \"url\": \"<string>\",\n \"venueName\": \"<string>\",\n \"address\": \"<string>\",\n \"location\": {},\n \"visibility\": \"<string>\",\n \"capacity\": 123,\n \"allowMaybe\": true,\n \"guestListVisible\": true,\n \"metadata\": {},\n \"removeImageIds\": [\n \"<string>\"\n ],\n \"cover.options\": \"<string>\",\n \"gallery\": [\n null\n ],\n \"gallery.options\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyUpdates an event. Host-only — the caller must be in
See also: useUpdateEvent
hostIds (service keys bypass this). Every provided field is updated; omitted fields are left untouched. Type-conditional location validation is re-applied when type is present.
hostIds, status, and spaceId are not editable here — manage hosts via the host endpoints, cancel via Cancel Event; the space is immutable.
Images can be curated in one request: a new cover replaces the existing cover, gallery files are appended, and removeImageIds deletes existing event images by File ID. Any image operation requires the files-images bundle.
When a time field (startTime/endTime/timezone) or a location field (location/url/venueName/address) actually changes, an event-updated notification is fanned out to all going/maybe RSVPs (best-effort, requires the notifications bundle).
Path Parameters
Body Parameters
New coordinates. On multipart requests, send as a JSON string.
File IDs of existing event images to remove (gallery photos and/or the current cover). Each must belong to this event. On multipart requests, send as a JSON string.
Response
Returns the updated Event object.Error Responses
Not Found — 404
Not Found — 404
{ "error": "Event not found", "code": "event/not-found" }
Forbidden (not a host) — 403
Forbidden (not a host) — 403
{ "error": "Only a host of this event may update it.", "code": "event/forbidden" }
files-images Bundle Required — 403
files-images Bundle Required — 403
{ "error": "Event cover/gallery images require the files-images bundle. Enable it for this project.", "code": "event/files-images-bundle-required" }
Invalid removeImageIds — 400
Invalid removeImageIds — 400
{ "error": "Some removeImageIds do not belong to this event.", "code": "event/invalid-remove-image-ids" }

