PUT api/cataloguer/categories/{categoryId}/products
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| token |
Токен авторизации |
string |
Required |
| categoryId | integer |
Required |
Body Parameters
AddProductInCategoryRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| productId | integer |
None. |
|
| attributes | Collection of AddProductInCategoryAttributeRequest |
None. |
Request Formats
application/json, text/json
Sample:
{
"productId": 1,
"attributes": [
{
"attributeId": 1,
"attributeValueId": 2
},
{
"attributeId": 1,
"attributeValueId": 2
}
]
}
application/x-www-form-urlencoded
Sample:
application/xml, text/xml
Sample:
<AddProductInCategoryRequest>
<ProductId>1</ProductId>
<Attributes>
<AddProductInCategoryAttributeRequest>
<AttributeId>1</AttributeId>
<AttributeValueId>2</AttributeValueId>
</AddProductInCategoryAttributeRequest>
<AddProductInCategoryAttributeRequest>
<AttributeId>1</AttributeId>
<AttributeValueId>2</AttributeValueId>
</AddProductInCategoryAttributeRequest>
</Attributes>
</AddProductInCategoryRequest>
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |