POST api/Categories
Request Information
URI Parameters
None.
Body Parameters
Category| Name | Description | Type | Additional information |
|---|---|---|---|
| CategoryId | integer |
None. |
|
| StoreId | integer |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| StatusTypeId | integer |
None. |
|
| CreatedBy | integer |
None. |
|
| CreatedDate | date |
None. |
|
| UpdatedBy | integer |
None. |
|
| UpdatedDate | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"CategoryId": 1,
"StoreId": 1,
"Name": "sample string 2",
"Description": "sample string 3",
"StatusTypeId": 1,
"CreatedBy": 1,
"CreatedDate": "2025-12-06T09:59:07.9170075+05:30",
"UpdatedBy": 1,
"UpdatedDate": "2025-12-06T09:59:07.9170075+05:30"
}
application/xml, text/xml
Sample:
<Category xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GNGroup.Models"> <CategoryId>1</CategoryId> <CreatedBy>1</CreatedBy> <CreatedDate>2025-12-06T09:59:07.9170075+05:30</CreatedDate> <Description>sample string 3</Description> <Name>sample string 2</Name> <StatusTypeId>1</StatusTypeId> <StoreId>1</StoreId> <UpdatedBy>1</UpdatedBy> <UpdatedDate>2025-12-06T09:59:07.9170075+05:30</UpdatedDate> </Category>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Category| Name | Description | Type | Additional information |
|---|---|---|---|
| CategoryId | integer |
None. |
|
| StoreId | integer |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| StatusTypeId | integer |
None. |
|
| CreatedBy | integer |
None. |
|
| CreatedDate | date |
None. |
|
| UpdatedBy | integer |
None. |
|
| UpdatedDate | date |
None. |
Response Formats
application/json, text/json
Sample:
{
"CategoryId": 1,
"StoreId": 1,
"Name": "sample string 2",
"Description": "sample string 3",
"StatusTypeId": 1,
"CreatedBy": 1,
"CreatedDate": "2025-12-06T09:59:07.9170075+05:30",
"UpdatedBy": 1,
"UpdatedDate": "2025-12-06T09:59:07.9170075+05:30"
}
application/xml, text/xml
Sample:
<Category xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GNGroup.Models"> <CategoryId>1</CategoryId> <CreatedBy>1</CreatedBy> <CreatedDate>2025-12-06T09:59:07.9170075+05:30</CreatedDate> <Description>sample string 3</Description> <Name>sample string 2</Name> <StatusTypeId>1</StatusTypeId> <StoreId>1</StoreId> <UpdatedBy>1</UpdatedBy> <UpdatedDate>2025-12-06T09:59:07.9170075+05:30</UpdatedDate> </Category>