Create Attribute
POST
{{ecommercev2_url}}/attributes
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '{{ecommercev2_url}}/attributes' \
--header 'x-client: {{client}}' \
--header 'accept-language: {{acceptLanguage}}' \
--header 'Content-Type: application/json' \
--header 'x-access-token;' \
--data-raw '{
"name": {
"en": "Branch"
},
"type": "select",
"tag": "custom",
"isFiltrable": false,
"required": false,
"multi": true,
"isComparable": false,
"visibility": false,
"sortable": false,
"selectionStyle": "carousel",
"belongsTo": [
"product"
],
"groupId": "681882b677b0e2bdb405577f",
"vendorId": "674ed2adc7ab4354ff309b51",
"id": "68234a2a8172a05d5c672e10",
"createdAt": "2025-05-13T13:33:30.768Z",
"createdBy": "674ed2adc7ab4354ff309b51",
"updatedAt": "2025-05-13T13:33:30.768Z",
"updatedBy": "674ed2adc7ab4354ff309b51",
"group": {
"name": {
"defaultTranslation": "gnvngv",
"en": "gnvngv"
},
"code": "gnvngv_2",
"id": "681882b677b0e2bdb405577f",
"createdAt": "2025-05-05T09:19:50.084Z",
"createdBy": "6812196790745133183931c1",
"updatedAt": "2025-05-05T09:19:50.084Z",
"updatedBy": "6812196790745133183931c1"
},
"refField": "branch"
}'
Response Response Example
{}
Request
Header Params
x-access-token
stringÂ
required
Example:
{{admin-token}}
x-client
stringÂ
required
Example:
{{client}}
accept-language
stringÂ
required
Example:
{{acceptLanguage}}
Body Params application/json
Responses
Modified at 2025-05-15 13:24:46