POST/organizations/{orgId}/area-attributes
Adds an area attribute and returns its id. type is fixed at creation; Select and MultiSelect need options. useCases defaults to Org.
fieldClassId from FieldClasses_GetFieldClasses; org admins only, ignored otherwise. Needs Area.Configure at the organization.
Path Parameters
| Field | Type | Required | Description |
|---|
| orgId | uuid | Required | |
Request Body
| Field | Type | Required | Description |
|---|
| name | string | Optional | |
| fieldClassId | uuid | Optional | |
| type | string | Optional | |
| options | CreateAreaAttributeRequestOptionRequest[] | Optional | |
| useCases | string[] | Optional | |
| availability | CreateAreaAttributeRequestAvailabilityRequest | Optional | |
| aiFill | CreateAreaAttributeRequestAiFillRequest | Optional | |
| hasExpiration | boolean | Optional | |
CreateAreaAttributeRequestOptionRequest
| Field | Type | Description |
|---|
| label | string| null | |
| type | string| null | |
| value | string| null | |
| color | string| null | |
| icon | string| null | |
CreateAreaAttributeRequestAvailabilityRequest
| Field | Type | Description |
|---|
| recordIds | uuid[]| null | |
CreateAreaAttributeRequestAiFillRequest
| Field | Type | Description |
|---|
| instructions | string| null | |
| triggers | CreateAreaAttributeRequestTriggerRequest[]| null | |
CreateAreaAttributeRequestTriggerRequest
| Field | Type | Description |
|---|
| kind | string| null | |
| attributeId | uuid| null | |
| corePath | string| null | |
Response
Type: uuid