Docs
Create Event Attribute
POST /eventAttributes
POST
/eventAttributesAdds 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
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Optional | |
| fieldClassId | uuid | Optional | |
| type | string | Optional | |
| options | CreateEventAttributeRequestOptionRequest[] | Optional | |
| availability | CreateEventAttributeRequestAvailabilityRequest | Optional | |
| aiFill | CreateEventAttributeRequestAiFillRequest | Optional | |
| hasExpiration | boolean | Optional |
CreateEventAttributeRequestOptionRequest
| Field | Type | Description |
|---|---|---|
| value | string| null | |
| color | string| null | |
| icon | string| null |
CreateEventAttributeRequestAvailabilityRequest
| Field | Type | Description |
|---|---|---|
| recordIds | uuid[]| null |
CreateEventAttributeRequestAiFillRequest
| Field | Type | Description |
|---|---|---|
| instructions | string| null | |
| triggers | CreateEventAttributeRequestTriggerRequest[]| null |
CreateEventAttributeRequestTriggerRequest
| Field | Type | Description |
|---|---|---|
| kind | string| null | |
| attributeId | uuid| null | |
| corePath | string| null |
Response
Type: uuid