Edit Attribute
Testing Env
https://www.testecommerce.vodoerp.com
Testing Env
https://www.testecommerce.vodoerp.com
POST
/{{attributes}}/42
Last modified:2025-04-14 00:56:43
Key | Value | Description | Type |
---|---|---|---|
apikey | 5f28583f26a1a | You must contact support to get the apikey. Required | string |
apiconnection | appmobile | You must contact support to get the apiconnection. Required | string |
secure-business-key | 140356399db2b2c32f0.25237063 | You must contact support to get the secure-business-key. Required | string |
userToken | 09119b2691afaa567bc1d46c829ebd41193c8545191146cc5df791681a792ad9 | (Get user token from https://testaccounts.vodoerp.com/api/login or https://accounts.vodoerp.com/api/login ) Required | string |
Key | Value | Description | Type |
---|---|---|---|
_method | PUT | Required | text |
name_en | Sizes | Required | text |
name_ar | مقاسات | Required | text |
status | 0 | 1 or 0 | text |
contain_image | 0 | 1 or 0 | text |
descriptions[0][name_en] | Small | Required | text |
descriptions[0][name_ar] | صغير | Required | text |
descriptions[1][name_en] | Medium | text | |
descriptions[1][name_ar] | متوسط | text | |
descriptions[2][name_en] | Large | text | |
descriptions[2][name_ar] | كبير | text | |
descriptions[3][name_en] | XLarge | text | |
descriptions[3][name_ar] | كبير جدا | text | |
descriptions[4][name_en] | XXLarge | text | |
descriptions[4][name_ar] | كبير جدا جدا | text |
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://www.testecommerce.vodoerp.com/api/v1/attributes/42' \
--header 'apikey: 5f28583f26a1a' \
--header 'apiconnection: appmobile' \
--header 'secure-business-key: 140356399db2b2c32f0.25237063' \
--header 'userToken: 09119b2691afaa567bc1d46c829ebd41193c8545191146cc5df791681a792ad9' \
--form '_method="PUT"' \
--form 'name_en="Sizes"' \
--form 'name_ar="مقاسات"' \
--form 'status="0"' \
--form 'contain_image="0"' \
--form 'descriptions[0][name_en]="Small"' \
--form 'descriptions[0][name_ar]="صغير"' \
--form 'descriptions[1][name_en]="Medium"' \
--form 'descriptions[1][name_ar]="متوسط"' \
--form 'descriptions[2][name_en]="Large"' \
--form 'descriptions[2][name_ar]="كبير"' \
--form 'descriptions[3][name_en]="XLarge"' \
--form 'descriptions[3][name_ar]="كبير جدا"' \
--form 'descriptions[4][name_en]="XXLarge"' \
--form 'descriptions[4][name_ar]="كبير جدا جدا"'
Response Response Example
{
"status": true,
"message": "Attribute Updated successfully",
"data": {
"id": 42,
"category_id": null,
"business_id": 47,
"name_en": "Sizes",
"name_ar": "مقاسات",
"status": "0",
"contain_image": "0",
"descriptions": [
{
"id": 21,
"name_ar": "صغير",
"name_en": "Small",
"color": null,
"attribute_id": 42,
"status": 1
},
{
"id": 22,
"name_ar": "متوسط",
"name_en": "Medium",
"color": null,
"attribute_id": 42,
"status": 1
},
{
"id": 88,
"name_ar": "كبير",
"name_en": "Large",
"color": null,
"attribute_id": 42,
"status": 1
},
{
"id": 89,
"name_ar": "كبير جدا",
"name_en": "XLarge",
"color": null,
"attribute_id": 42,
"status": 1
},
{
"id": 90,
"name_ar": "كبير جدا جدا",
"name_en": "XXLarge",
"color": null,
"attribute_id": 42,
"status": 1
}
]
}
}
Request
Header Params
apikey
string
required
Example:
5f28583f26a1a
apiconnection
string
required
Example:
appmobile
secure-business-key
string
required
728106399db2b289783.89154521
2680667168f2f8a68f6.12561200
140356399db2b2c32f0.25237063
96701678e330f31f768.22400604
14807664478836358b0.31329842
Example:
140356399db2b2c32f0.25237063
userToken
string
required
https://testaccounts.vodoerp.com/api/login
or
https://accounts.vodoerp.com/api/login
Example:
09119b2691afaa567bc1d46c829ebd41193c8545191146cc5df791681a792ad9
Body Params multipart/form-data
_method
string
required
Example:
PUT
name_en
string
required
Example:
Sizes
name_ar
string
required
Example:
مقاسات
status
string
required
Example:
0
contain_image
string
required
Example:
0
descriptions[0][name_en]
string
required
Example:
Small
descriptions[0][name_ar]
string
required
Example:
صغير
descriptions[1][name_en]
string
required
Example:
Medium
descriptions[1][name_ar]
string
required
Example:
متوسط
descriptions[2][name_en]
string
required
Example:
Large
descriptions[2][name_ar]
string
required
Example:
كبير
descriptions[3][name_en]
string
required
Example:
XLarge
descriptions[3][name_ar]
string
required
Example:
كبير جدا
descriptions[4][name_en]
string
required
Example:
XXLarge
descriptions[4][name_ar]
string
required
Example:
كبير جدا جدا