POST api/categories/AddCategory
Request Information
URI Parameters
None.
Body Parameters
CategoryEntity| Name | Description | Type | Additional information |
|---|---|---|---|
| CategoryId | integer |
None. |
|
| CategoryName | string |
None. |
|
| Tax | decimal number |
None. |
|
| Active | boolean |
None. |
|
| CreatedTime | date |
None. |
|
| UpdatedTime | date |
None. |
|
| VendorId | integer |
None. |
|
| ImageURL | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"CategoryId": 1,
"CategoryName": "sample string 2",
"Tax": 1.0,
"Active": true,
"CreatedTime": "2025-12-31T16:36:30.6599155+05:30",
"UpdatedTime": "2025-12-31T16:36:30.6599155+05:30",
"VendorId": 4,
"ImageURL": "sample string 5"
}
application/xml, text/xml
Sample:
<CategoryEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pos_crm_api_DAL.Entities"> <Active>true</Active> <CategoryId>1</CategoryId> <CategoryName>sample string 2</CategoryName> <CreatedTime>2025-12-31T16:36:30.6599155+05:30</CreatedTime> <ImageURL>sample string 5</ImageURL> <Tax>1</Tax> <UpdatedTime>2025-12-31T16:36:30.6599155+05:30</UpdatedTime> <VendorId>4</VendorId> </CategoryEntity>
application/x-www-form-urlencoded
Sample:
Sample not available.
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. |