curl --request PATCH \
--url https://api.wizcommerce.com/v2/attributes/{attribute_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"entity": "customer",
"configuration": {
"default_value": "<unknown>",
"options": [
{
"label": "Cotton",
"value": "cotton",
"color_code": "#FF0000",
"image_url": "https://example.com/image.png"
}
],
"show_label": true
},
"is_mandatory": true,
"name": "Customer Type",
"priority": 1
}
'