Docs
Update Order Attribute
PUT /order-attributes/{attributeId}
PUT
/order-attributes/{attributeId}Renames an order attribute and replaces its options (send each kept option's id). hasExpiration false clears every expiry date of the attribute; null leaves it. fieldClassId sets the field class (org admins only, ignored otherwise; null leaves it). Needs Order.Configure at the organization.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| attributeId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Optional | |
| fieldClassId | uuid | Optional | |
| options | UpdateOrderAttributeRequestOptionRequest[] | Optional | |
| hasExpiration | boolean | Optional |
UpdateOrderAttributeRequestOptionRequest
| Field | Type | Description |
|---|---|---|
| id | uuid| null | |
| label | string| null | |
| type | string| null | |
| value | string| null | |
| color | string| null | |
| icon | string| null | |
| isArchived | boolean |