put https://{accountName}.{environment}.com.br/api/catalog/pvt/attachment/
Updates a previously existing SKU attachment with new information.
Request body has the following properties:
Attribute | Type | Description |
---|---|---|
Name | string | Attachment Name |
IsRequired | boolean | If it is required or not |
IsActive | boolean | If the attachment is active or not |
Domains | array of objects | Attachment list of characteristics |
FieldName | string | Attachment key Name |
MaxCaracters | string | Key max number of characters |
DomainValues | string | Allowed key values |
Request body example:
{
"Name": "Test",
"IsRequired": true,
"IsActive": true,
"Domains": [
{
"FieldName": "Basic test",
"MaxCaracters": "",
"DomainValues": "[1-2]#9[1-1][1]basic;#11[0-1][1]basic"
},
{
"FieldName": "teste",
"MaxCaracters": "",
"DomainValues": "[0-10]#8[0-3][0]medium;#9[0-3][0]medium;#10[0-3][0]medium;#11[0-3][0]medium;#36[0-3][0]medium;#37[0-3][0]medium;#38[0-3][0]medium"
}
]
}
Response body has the following properties:
Attribute | Type | Description |
---|---|---|
Id | integer | Attachment ID |
Name | string | Attachment Name |
IsRequired | boolean | If it is required or not |
IsActive | boolean | If the attachment is active or not |
Domains | array of objects | Attachment list of characteristics |
FieldName | string | Attachment key Name |
MaxCaracters | string | Key max number of characters |
DomainValues | string | Allowed key values |
Response body example:
{
"Id": 8,
"Name": "Test",
"IsRequired": true,
"IsActive": true,
"Domains": [
{
"FieldName": "Basic test",
"MaxCaracters": "",
"DomainValues": "[1-2]#9[1-1][1]basic;#11[0-1][1]basic"
},
{
"FieldName": "teste",
"MaxCaracters": "",
"DomainValues": "[0-10]#8[0-3][0]medium;#9[0-3][0]medium;#10[0-3][0]medium;#11[0-3][0]medium;#36[0-3][0]medium;#37[0-3][0]medium;#38[0-3][0]medium"
}
]
}