Skip to main content
Update Event
Updates an event. Host-only: the caller must be the owner or in hostIds, and, for an event in a space, an active member of that space who isn’t banned in it or a space above it. The space’s admins and moderators can’t edit events they don’t host. A service key acts as the host it names in actingUserId. 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. Files can be curated in one request: a new coverFile replaces the existing cover, images and files are appended after the event’s existing files, and removeFileIds deletes existing event files by File ID. Any file 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 the going/maybe RSVP holders who can still see the event (best-effort, requires the notifications bundle).

Path Parameters

string
required
UUID of the event to update.

Body Parameters

string
Event title. 1–300 characters.
string
New description.
string
New ISO start datetime.
string
New ISO end datetime.
string
New IANA timezone.
string
"online", "physical", or "hybrid". Re-triggers location validation.
string
Join/stream URL.
string
Venue name.
string
Street address.
{ latitude: number; longitude: number }
New coordinates. On multipart requests, send as a JSON string.
string
"public", "members", or "invite".
number
New capacity (positive integer).
boolean
Whether "maybe" RSVPs are allowed.
boolean
Whether everyone who can see the event can view the guest list. When false, only hosts who are active members of the event’s space and not banned in it or a space above it and the space’s admins and moderators can.
object
Arbitrary key-value data. Up to 1 MB.
string[]
Files to remove from the event: files in its files and/or the current cover (coverImageId). Removing the cover clears it (coverImageId becomes null). Each file and its blobs are deleted. Works alone or with uploads in the same request; uploading a new cover while listing the old one is a plain replace. On a multipart request, send it as a JSON string ('["<fileId>"]'). Any id that isn’t one of this event’s files refuses the whole request with 400 event/invalid-remove-file-ids.
file
New cover image (replaces the current cover; the old cover file is deleted). Multipart file field. Requires coverFile.options. Adding a cover doesn’t move the event’s other files.
string
JSON-stringified image-processing options for the new cover (mode is required). The same options as Upload Image’s file.options. A key the options don’t take, a key of another mode included (for example sizes with exact-dimensions), is refused with 400 event/invalid-body, param naming it.
file[]
Images to append to the event’s files, processed into sizes per images.options. Multipart file field. Requires images.options. A request takes at most 20 files over all its file fields together.
string
JSON-stringified image-processing options for the appended images (mode is required). The same options as Upload Image’s file.options. A key the options don’t take, a key of another mode included (for example sizes with exact-dimensions), is refused with 400 event/invalid-body, param naming it.
file[]
Files to append to the event’s files, stored as uploaded. Multipart file field. Each file’s type comes from its MIME type; an image sent here isn’t processed, so it has no image data.
string
Optional JSON-stringified file options: pathParts (string[]) customizes the storage path. A key other than pathParts is refused with 400 event/invalid-body, param naming it.
New files come after the event’s existing ones, images first and then files, each in upload order. An images.options or files.options sent without its files isn’t used, but is still validated: invalid options get a 400.
string | string[]
What the response adds: files, the event’s files as they now are (the cover first, then its images and files), images with their variants, along with the host’s user.avatarFile and user.bannerFile, as Fetch Event returns them. A comma-separated value or an array; in a multipart body also a JSON-string array such as '["files"]'. Matching ignores case. In the body like every other field (JSON, or a multipart field), never the query. Without it the response has no files, even when the update uploaded or removed files. Without the files-images bundle it adds nothing.
string
Required with a service key: the user this request acts as. It has exactly that user’s powers, so it is refused unless they are a host of the event with active membership of its space, and it is recorded as theirs. A user token always acts as its own user and must not send it (400 event/acting-user-not-allowed).

Response

Returns the updated Event object. With include: "files" it also carries files (the cover first, then its images and files, images with their variants) and the host’s avatar and banner files. To show a file change without fetching the event again, send include: "files" with it.

Error Responses

Returned with no JSON body: 401 when no Authorization header is sent, 403 when the access token is invalid or expired. Checked before any uploaded file is read, so a request with no credentials gets 401 rather than a body or acting-user error.
A service key sent no actingUserId.
actingUserId is not a user id.
A user token sent actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
actingUserId was sent in the query string. On this endpoint every field goes in the request body.
include names a value this endpoint doesn’t add. The only value is files.
include was sent in the query string. On this endpoint it goes in the request body, with the other fields.
The request sent removeImageIds, cover.options or gallery.options. Files are removed with removeFileIds, the cover is uploaded as coverFile with its options in coverFile.options, and the event’s images as images with their options in images.options.
Returned when a service key names an actingUserId that isn’t a user in this project.
The event doesn’t exist, or the caller can’t see it and isn’t one of its hosts.
The caller is a host, but the event is in a space they aren’t an active member of, or they are banned in it or a space above it. One body for every case.
Returned when a cover, images or files are uploaded or removeFileIds is sent on a project without the files-images bundle. missingTables lists the tables that aren’t installed and bundleId the bundle to install. While the bundle is still being installed, the response is 503 database/tables-provisioning instead. See Bundles.
removeFileIds names a file that isn’t one of this event’s files. invalidIds lists those ids. Checked before anything is uploaded, so nothing is stored or removed.
A removeFileIds that isn’t an array of file ids gets 400 event/invalid-body instead.
A file is over 50 MB. param names its field.
The cover can’t be read as an image. A file in images that can’t be read gets the same code with param: "images":
An image over 10000 px on a side gets the same code. error gives its size:
A file in images:
A cover or images were uploaded without their options. param is coverFile.options or images.options.
For images:
coverFile.options without mode, or with a mode that isn’t one of the five (other options fields the same way, named in error and param):
In an aspect-ratio mode, a variant’s computed side would be outside 1–10000 px. Checked once the image is read, before anything is stored. param names the option:
In aspect-ratio-height-based it names a heights option and gives a width. In multi-aspect-ratio it names a sizes option, and the ratio is the one in aspectRatios closest to the image, so the text reads ”… at the 3:1 aspect ratio, the one in aspectRatios closest to this image. Each side of a variant must be 1–10000 px.” More than 30 entries in dimensions, widths, heights or sizes (one variant each). param names the option:
A variant name that uses a character other than letters, digits, _, - and ., that is longer than 64 characters, that contains .., or that is original. param names the option:
A key the options don’t take (also a key of another mode). error names the object holding it, param the key itself:
files.options takes only pathParts; any other key gets the same code:
The uploaded files would take the project past its plan’s file-storage limit. The event is unchanged and nothing is stored.
A file was refused as the body was read: event/unsupported-file-type or event/unexpected-file-field (a file in another field, the old cover and gallery included, or a second file in coverFile), with param naming the field when there is one, or 413 event/too-many-files for more than 20 files in the request. A body over 250 MB gets 413 request/body-too-large; one that can’t be read at all gets request/invalid-multipart or request/field-too-large. See Upload errors.
See also: useUpdateEvent