POST/organizations/{orgId}/order-attributes
Adds an order attribute and returns its id. type is fixed at creation; Select and MultiSelect need options. fieldClassId from
FieldClasses_GetFieldClasses; org admins only, ignored otherwise. Needs Order.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 | CreateOrderAttributeRequestOptionRequest[] | Optional | |
| availability | CreateOrderAttributeRequestAvailabilityRequest | Optional | |
| aiFill | CreateOrderAttributeRequestAiFillRequest | Optional | |
| hasExpiration | boolean | Optional | |
CreateOrderAttributeRequestOptionRequest
| Field | Type | Description |
|---|
| label | string| null | |
| type | string| null | |
| value | string| null | |
| color | string| null | |
| icon | string| null | |
CreateOrderAttributeRequestAvailabilityRequest
| Field | Type | Description |
|---|
| recordIds | uuid[]| null | |
CreateOrderAttributeRequestAiFillRequest
| Field | Type | Description |
|---|
| instructions | string| null | |
| triggers | CreateOrderAttributeRequestTriggerRequest[]| null | |
CreateOrderAttributeRequestTriggerRequest
| Field | Type | Description |
|---|
| kind | string| null | |
| attributeId | uuid| null | |
| corePath | string| null | |
Response
Type: uuid