Add Attributes
Testing Env
https://www.testecommerce.vodoerp.com
Testing Env
https://www.testecommerce.vodoerp.com
POST
/{{attributes}}
Last modified:2025-04-14 00:56:04
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 |
---|---|---|---|
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 |
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://www.testecommerce.vodoerp.com/api/v1/attributes' \
--header 'apikey: 5f28583f26a1a' \
--header 'apiconnection: appmobile' \
--header 'secure-business-key: 140356399db2b2c32f0.25237063' \
--header 'userToken: 09119b2691afaa567bc1d46c829ebd41193c8545191146cc5df791681a792ad9' \
--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]="كبير"'
Response Response Example
{
"status": true,
"message": "Attribute stored successfully",
"data": {
"name_en": "Sizes",
"name_ar": "مقاسات",
"contain_image": false,
"status": false,
"business_id": 47,
"id": 67,
"descriptions": [
{
"id": 124,
"name_ar": "صغير",
"name_en": "Small",
"color": null,
"attribute_id": 67,
"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
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
optional
Example:
Medium
descriptions[1][name_ar]
string
optional
Example:
متوسط
descriptions[2][name_en]
string
optional
Example:
Large
descriptions[2][name_ar]
string
optional
Example:
كبير