PUT Category/{id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
Body Parameters
CategoryDtoName | Description | Type | Additional information |
---|---|---|---|
CategoryId | integer |
Required |
|
Name | string |
Required String length: inclusive between 0 and 500 |
|
Description | string |
None. |
|
IsDeleted | boolean |
None. |
|
ImageUrl | string |
String length: inclusive between 0 and 4000 |
|
Images | Collection of string |
None. |
|
ShortDescription | string |
None. |
|
Sort | string |
None. |
|
ShowInProductPage | boolean |
None. |
|
ShowInMainMenu | boolean |
None. |
|
SourceCode | string |
Required String length: inclusive between 0 and 500 |
Request Formats
application/json, text/json
Sample:
{ "CategoryId": 1, "Name": "sample string 2", "Description": "sample string 3", "IsDeleted": true, "ImageUrl": "sample string 4", "Images": [ "sample string 1", "sample string 2" ], "ShortDescription": "sample string 5", "Sort": "sample string 6", "ShowInProductPage": true, "ShowInMainMenu": true, "SourceCode": "sample string 9" }
application/xml, text/xml
Sample:
<CategoryDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PackageSite.Models.Dto"> <SourceCode>sample string 9</SourceCode> <CategoryId>1</CategoryId> <Description>sample string 3</Description> <ImageUrl>sample string 4</ImageUrl> <Images xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Images> <IsDeleted>true</IsDeleted> <Name>sample string 2</Name> <ShortDescription>sample string 5</ShortDescription> <ShowInMainMenu>true</ShowInMainMenu> <ShowInProductPage>true</ShowInProductPage> <Sort>sample string 6</Sort> </CategoryDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.