Docs

Create Event Attribute

POST /eventAttributes

POST/eventAttributes

Adds an attribute to the organization's event attribute library and returns its id. The type is fixed at creation and cannot be changed later. Select options, or for a crew or collaborator type an availability list, can be supplied up front. To put the attribute on an event type, pass the new id to EventTypes_AssignAttribute. Requires Event.Configure at the organization.

Request Body

FieldTypeRequiredDescription
namestringOptional
fieldClassIduuidOptional
typestringOptional
optionsCreateEventAttributeRequestOptionRequest[]Optional
availabilityCreateEventAttributeRequestAvailabilityRequestOptional
aiFillCreateEventAttributeRequestAiFillRequestOptional
hasExpirationbooleanOptional

CreateEventAttributeRequestOptionRequest

FieldTypeDescription
valuestring| null
colorstring| null
iconstring| null

CreateEventAttributeRequestAvailabilityRequest

FieldTypeDescription
recordIdsuuid[]| null

CreateEventAttributeRequestAiFillRequest

FieldTypeDescription
instructionsstring| null
triggersCreateEventAttributeRequestTriggerRequest[]| null

CreateEventAttributeRequestTriggerRequest

FieldTypeDescription
kindstring| null
attributeIduuid| null
corePathstring| null

Response

Type: uuid