POST api/Item/SaveItem
Request Information
URI Parameters
None.
Body Parameters
ItemViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| PK_ItemID | integer |
None. |
|
| ItemName | string |
None. |
|
| Quantity | integer |
None. |
|
| Rate | decimal number |
None. |
|
| MinimumQty | integer |
None. |
|
| FK_ItemCategoryID | integer |
None. |
|
| FK_UnitID | integer |
None. |
|
| CategoryName | string |
None. |
|
| ItemDescription | string |
None. |
|
| ParentItemID | integer |
None. |
|
| isparent | boolean |
None. |
|
| Priority | integer |
None. |
|
| FK_RCounterID | integer |
None. |
|
| IsActive | boolean |
None. |
|
| IsDelete | boolean |
None. |
|
| FK_CreatedBy | integer |
None. |
|
| FK_ModifiedBy | integer |
None. |
|
| CreatedDate | date |
None. |
|
| ModifiedDate | date |
None. |
|
| RowNumber | integer |
None. |
|
| RecordCount | integer |
None. |
|
| Result | string |
None. |
|
| Message | string |
None. |
|
| IsValid | boolean |
None. |
|
| StatusCode | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"PK_ItemID": 1,
"ItemName": "sample string 1",
"Quantity": 2,
"Rate": 3.0,
"MinimumQty": 4,
"FK_ItemCategoryID": 5,
"FK_UnitID": 6,
"CategoryName": "sample string 7",
"ItemDescription": "sample string 8",
"ParentItemID": 1,
"isparent": true,
"Priority": 10,
"FK_RCounterID": 1,
"IsActive": true,
"IsDelete": true,
"FK_CreatedBy": 1,
"FK_ModifiedBy": 1,
"CreatedDate": "2026-10-19T07:24:40.6202043-07:00",
"ModifiedDate": "2026-10-19T07:24:40.6202043-07:00",
"RowNumber": 1,
"RecordCount": 1,
"Result": "sample string 11",
"Message": "sample string 12",
"IsValid": true,
"StatusCode": 1
}
application/xml, text/xml
Sample:
<ItemViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TheEnjoyCity.Data.ViewModels.MasterSetupItem"> <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/TheEnjoyCity.Data.ViewModels.Common">2026-10-19T07:24:40.6202043-07:00</CreatedDate> <FK_CreatedBy xmlns="http://schemas.datacontract.org/2004/07/TheEnjoyCity.Data.ViewModels.Common">1</FK_CreatedBy> <FK_ModifiedBy xmlns="http://schemas.datacontract.org/2004/07/TheEnjoyCity.Data.ViewModels.Common">1</FK_ModifiedBy> <IsActive xmlns="http://schemas.datacontract.org/2004/07/TheEnjoyCity.Data.ViewModels.Common">true</IsActive> <IsDelete xmlns="http://schemas.datacontract.org/2004/07/TheEnjoyCity.Data.ViewModels.Common">true</IsDelete> <IsValid xmlns="http://schemas.datacontract.org/2004/07/TheEnjoyCity.Data.ViewModels.Common">true</IsValid> <Message xmlns="http://schemas.datacontract.org/2004/07/TheEnjoyCity.Data.ViewModels.Common">sample string 12</Message> <ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/TheEnjoyCity.Data.ViewModels.Common">2026-10-19T07:24:40.6202043-07:00</ModifiedDate> <RecordCount xmlns="http://schemas.datacontract.org/2004/07/TheEnjoyCity.Data.ViewModels.Common">1</RecordCount> <Result xmlns="http://schemas.datacontract.org/2004/07/TheEnjoyCity.Data.ViewModels.Common">sample string 11</Result> <RowNumber xmlns="http://schemas.datacontract.org/2004/07/TheEnjoyCity.Data.ViewModels.Common">1</RowNumber> <StatusCode xmlns="http://schemas.datacontract.org/2004/07/TheEnjoyCity.Data.ViewModels.Common">1</StatusCode> <CategoryName>sample string 7</CategoryName> <FK_ItemCategoryID>5</FK_ItemCategoryID> <FK_RCounterID>1</FK_RCounterID> <FK_UnitID>6</FK_UnitID> <ItemDescription>sample string 8</ItemDescription> <ItemName>sample string 1</ItemName> <MinimumQty>4</MinimumQty> <PK_ItemID>1</PK_ItemID> <ParentItemID>1</ParentItemID> <Priority>10</Priority> <Quantity>2</Quantity> <Rate>3</Rate> <isparent>true</isparent> </ItemViewModel>
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. |