POST api/Category
Request Information
URI Parameters
None.
Body Parameters
CategoryInsertUpdateRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| CategoryID | integer |
None. |
|
| CategoryName | string |
Required |
|
| ParentCategoryID | integer |
None. |
|
| CategoryIconUrl | string |
None. |
|
| IsCreatedByCustomer | integer |
None. |
|
| IsActive | integer |
None. |
Request Formats
application/json, text/json, text/plain, text/html
Sample:
{
"categoryID": 1,
"categoryName": "sample string 1",
"parentCategoryID": 1,
"categoryIconUrl": "sample string 2",
"isCreatedByCustomer": 1,
"isActive": 3
}
application/xml, text/xml
Sample:
<CategoryInsertUpdateRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NFTWardsV2.Core.RequestModel"> <CategoryID>1</CategoryID> <CategoryIconUrl>sample string 2</CategoryIconUrl> <CategoryName>sample string 1</CategoryName> <IsActive>3</IsActive> <IsCreatedByCustomer>1</IsCreatedByCustomer> <ParentCategoryID>1</ParentCategoryID> </CategoryInsertUpdateRequestModel>
multipart/form-data
Sample:
<CategoryInsertUpdateRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NFTWardsV2.Core.RequestModel"><CategoryID>1</CategoryID><CategoryIconUrl>sample string 2</CategoryIconUrl><CategoryName>sample string 1</CategoryName><IsActive>3</IsActive><IsCreatedByCustomer>1</IsCreatedByCustomer><ParentCategoryID>1</ParentCategoryID></CategoryInsertUpdateRequestModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
CommonResponseDataModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ReturnID | integer |
Required |
|
| Message | string |
Required |
|
| Successful | boolean |
Required |
|
| Code | integer |
None. |
|
| TotalRecord | integer |
None. |
Response Formats
application/json, text/json, text/plain, text/html
Sample:
{
"returnID": 1,
"message": "sample string 2",
"successful": true,
"code": 4,
"totalRecord": 5
}
application/xml, text/xml
Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NFTWards.Core.DataModel"> <Code>4</Code> <Message>sample string 2</Message> <ReturnID>1</ReturnID> <Successful>true</Successful> <TotalRecord>5</TotalRecord> </CommonResponseDataModel>
multipart/form-data
Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NFTWards.Core.DataModel"><Code>4</Code><Message>sample string 2</Message><ReturnID>1</ReturnID><Successful>true</Successful><TotalRecord>5</TotalRecord></CommonResponseDataModel>