PUT api2/attributes/{id}.json
Attributes by ID
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Attributes ID |
string |
Required |
Body Parameters
Attributes
api_root| Name | Description | Type | Additional information |
|---|---|---|---|
| entry | Attributes |
None. |
Request Format
{
"entry": {
"company_id": 1,
"valid": true,
"assignment": 64,
"name": "sample string 2",
"input_type": 64,
"default_value": "sample string 3",
"unique_value": true,
"values_required": true,
"input_validate": 64,
"use_search": true,
"show_on_product": true,
"show_on_catalog": true,
"use_for_sort": true,
"use_as_filter": true,
"use_as_variant": true,
"locales": [
{
"id": 1,
"att_id": 1,
"lang_id": 1,
"text": "sample string 2"
},
{
"id": 1,
"att_id": 1,
"lang_id": 1,
"text": "sample string 2"
}
],
"values": [
{
"id": 1,
"value": "sample string 1"
},
{
"id": 1,
"value": "sample string 1"
}
]
}
}
Response Information
Resource Description
Updated Attributes
api_root| Name | Description | Type | Additional information |
|---|---|---|---|
| entry | Attributes |
None. |
Response Format
{
"entry": {
"id": 1,
"company_id": 1,
"valid": true,
"assignment": 64,
"name": "sample string 2",
"input_type": 64,
"default_value": "sample string 3",
"unique_value": true,
"values_required": true,
"input_validate": 64,
"use_search": true,
"show_on_product": true,
"show_on_catalog": true,
"use_for_sort": true,
"use_as_filter": true,
"use_as_variant": true,
"locales": [
{
"id": 1,
"att_id": 1,
"lang_id": 1,
"text": "sample string 2"
},
{
"id": 1,
"att_id": 1,
"lang_id": 1,
"text": "sample string 2"
}
],
"values": [
{
"id": 1,
"value": "sample string 1"
},
{
"id": 1,
"value": "sample string 1"
}
]
}
}