cURL
curl --request PATCH \ --url https://api.wizcommerce.com/v1/attributes/{attribute_id} \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data '{ "configuration": { "default_value": "<any>", "options": [ { "label": "Cotton", "value": "cotton" } ], "show_label": true }, "entity": "customer", "is_mandatory": true, "name": "Customer Type", "priority": 1 }'
{ "data": { "id": "01f5d171-d3e3-4b2b-bd57-0727194b5bed", "name": "Color", "entity": "customer", "data_type": "select", "options": [ "Red", "Blue", "Green" ], "created_at": "2021-01-01T00:00:00Z", "updated_at": "2021-01-01T00:00:00Z" } }
Update Attribute
API Key for authentication
Attribute ID
request
customer
product
address
contact
order
Show child attributes
true
"Customer Type"
1
OK
Was this page helpful?