Docs

Set Event Attribute Value

PATCH /Events/{eventId}/attributes/{attributeId}

PATCH/Events/{eventId}/attributes/{attributeId}

Sets one attribute value on the event, or clears it when value is null. The value is typed by the attribute's kind: a string for Text and Link, a TipTap document for RichText, a number for Number and Currency, yyyy-MM-dd for Date, an ISO UTC timestamp for DateTime, true or false for Checkbox, an id string for Select, File, Collaborator and Crew, and an array of ids for the multi kinds (a read returns a File as { id, name } and a MultiFile as a list of them). A value of the wrong shape, an option id the attribute lacks, or an archived option the event does not already hold is a 400 naming the attribute. Filling a task tracked attribute advances its task, and a changed value runs the event type's value change effects. Needs event settings permission, or an organization token for an admin of the owning organization. To save several values at once use Events_UpdateEvent. The attribute id comes from Events_GetEventAttributeProfile. On a live event, blanking a value the type requires is a 400 whose missingRequired names it; a draft keeps clearing freely.

Path Parameters

FieldTypeRequiredDescription
eventIduuidRequired
attributeIduuidRequired

Request Body

FieldTypeRequiredDescription
valueJsonElementOptional
expiresOnJsonElementOptional
itemExpiriesJsonElementOptional