PUT api/Product
Update Product
Request Information
URI Parameters
None.
Body Parameters
ProductRequestModelName | Description | Type | Additional information |
---|---|---|---|
ProductID | integer |
None. |
|
ProductItemName | string |
None. |
|
ProductItemCode | string |
None. |
|
ShortDesc | string |
None. |
|
LongDesc | string |
None. |
|
AccountGroupID | integer |
None. |
|
AssetsGroupID | integer |
None. |
|
AssetsSubGroupID | integer |
None. |
|
AssetClassID | integer |
None. |
|
AssetTypeID | integer |
None. |
|
DepartmentID | integer |
None. |
|
LocationID | integer |
None. |
|
CategoryID | integer |
None. |
|
BrandID | integer |
None. |
|
SerialNumber | string |
None. |
|
UPC | string |
None. |
|
ISBN | string |
None. |
|
Barcode | string |
None. |
|
BasicUnitID | integer |
None. |
|
Cost | decimal number |
None. |
|
SupplierID | Collection of integer |
None. |
|
Manufacturer | string |
None. |
|
ManufacturerID | integer |
None. |
|
IsActive | integer |
None. |
|
CompanyID | integer |
None. |
|
ChangeBy | integer |
None. |
|
ChangeDate | date |
None. |
|
AssetMainGroupID | integer |
None. |
|
Model | string |
None. |
|
PartNo | string |
None. |
|
Series | string |
None. |
|
Type | string |
None. |
|
HSCodeID | integer |
None. |
|
UseID | integer |
None. |
|
SizeID | integer |
None. |
|
DesignID | integer |
None. |
|
SeasonID | integer |
None. |
|
Color | string |
None. |
|
Price | decimal number |
None. |
|
Compare_At | decimal number |
None. |
|
IsAssetRevaluation | boolean |
None. |
|
RevaluationJournalEntryDebitAccountID | integer |
None. |
|
RevaluationJournalEntryCreditAccountID | integer |
None. |
|
AccumulatedDepDebitAccountID | integer |
None. |
|
AccumulatedDepCreditAccountID | integer |
None. |
|
JournalEntryDebitAccountID | integer |
None. |
|
JournalEntryCreditAccountID | integer |
None. |
|
DepreciationExpenseAccountID | integer |
None. |
|
SelectedEstablishmentType | Collection of integer |
None. |
|
Division | string |
None. |
|
SubDivision | string |
None. |
|
ProjectID | integer |
None. |
|
SelectedEstablishmentTypes | string |
None. |
|
DivisionID | integer |
None. |
|
GeoRegionID | integer |
None. |
|
IsRentalAsset | boolean |
None. |
|
RentPerMinute | decimal number |
None. |
|
HourlyRentRate | decimal number |
None. |
|
DailyRentRate | decimal number |
None. |
|
WeeklyRentRate | decimal number |
None. |
|
MonthlyRentRate | decimal number |
None. |
|
DamagedRate | decimal number |
None. |
|
DelayedRate | decimal number |
None. |
|
RentMaintenceType | integer |
None. |
|
CaseNo | string |
None. |
|
ProductionDate | date |
None. |
|
ExpiryDate | date |
None. |
|
BatchNumber | string |
None. |
|
Quantity | decimal number |
None. |
|
ShelfLife | integer |
None. |
|
LineNumberID | integer |
None. |
|
ProductionTime | string |
None. |
|
StandardFullLoadForCases | integer |
None. |
Request Formats
application/json, text/json, text/plain, text/html
Sample:
{ "productID": 1, "productItemName": "sample string 1", "productItemCode": "sample string 2", "shortDesc": "sample string 3", "longDesc": "sample string 4", "accountGroupID": 1, "assetsGroupID": 1, "assetsSubGroupID": 1, "assetClassID": 1, "assetTypeID": 1, "departmentID": 1, "locationID": 1, "categoryID": 1, "brandID": 1, "serialNumber": "sample string 5", "upc": "sample string 6", "isbn": "sample string 7", "barcode": "sample string 8", "basicUnitID": 1, "cost": 1.0, "supplierID": [ 1, 2 ], "manufacturer": "sample string 9", "manufacturerID": 1, "isActive": 1, "companyID": 10, "changeBy": 11, "changeDate": "2025-07-16T06:15:08.4385595+00:00", "assetMainGroupID": 1, "model": "sample string 13", "partNo": "sample string 14", "series": "sample string 15", "type": "sample string 16", "hsCodeID": 1, "useID": 1, "sizeID": 1, "designID": 1, "seasonID": 1, "color": "sample string 17", "price": 1.0, "compare_At": 1.0, "isAssetRevaluation": true, "revaluationJournalEntryDebitAccountID": 1, "revaluationJournalEntryCreditAccountID": 1, "accumulatedDepDebitAccountID": 1, "accumulatedDepCreditAccountID": 1, "journalEntryDebitAccountID": 1, "journalEntryCreditAccountID": 1, "depreciationExpenseAccountID": 1, "selectedEstablishmentType": [ 1, 2 ], "division": "sample string 18", "subDivision": "sample string 19", "projectID": 1, "selectedEstablishmentTypes": "sample string 20", "divisionID": 1, "geoRegionID": 1, "isRentalAsset": true, "rentPerMinute": 1.0, "hourlyRentRate": 1.0, "dailyRentRate": 1.0, "weeklyRentRate": 1.0, "monthlyRentRate": 1.0, "damagedRate": 1.0, "delayedRate": 1.0, "rentMaintenceType": 1, "caseNo": "sample string 22", "productionDate": "2025-07-16T06:15:08.4541772+00:00", "expiryDate": "2025-07-16T06:15:08.4541772+00:00", "batchNumber": "sample string 23", "quantity": 1.0, "shelfLife": 1, "lineNumberID": 1, "productionTime": "sample string 24", "standardFullLoadForCases": 1 }
application/xml, text/xml
Sample:
<ProductRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.RequestModel"> <AccountGroupID>1</AccountGroupID> <AccumulatedDepCreditAccountID>1</AccumulatedDepCreditAccountID> <AccumulatedDepDebitAccountID>1</AccumulatedDepDebitAccountID> <AssetClassID>1</AssetClassID> <AssetMainGroupID>1</AssetMainGroupID> <AssetTypeID>1</AssetTypeID> <AssetsGroupID>1</AssetsGroupID> <AssetsSubGroupID>1</AssetsSubGroupID> <Barcode>sample string 8</Barcode> <BasicUnitID>1</BasicUnitID> <BatchNumber>sample string 23</BatchNumber> <BrandID>1</BrandID> <CaseNo>sample string 22</CaseNo> <CategoryID>1</CategoryID> <ChangeBy>11</ChangeBy> <ChangeDate>2025-07-16T06:15:08.4385595+00:00</ChangeDate> <Color>sample string 17</Color> <CompanyID>10</CompanyID> <Compare_At>1</Compare_At> <Cost>1</Cost> <DailyRentRate>1</DailyRentRate> <DamagedRate>1</DamagedRate> <DelayedRate>1</DelayedRate> <DepartmentID>1</DepartmentID> <DepreciationExpenseAccountID>1</DepreciationExpenseAccountID> <DesignID>1</DesignID> <Division>sample string 18</Division> <DivisionID>1</DivisionID> <ExpiryDate>2025-07-16T06:15:08.4541772+00:00</ExpiryDate> <GeoRegionID>1</GeoRegionID> <HSCodeID>1</HSCodeID> <HourlyRentRate>1</HourlyRentRate> <ISBN>sample string 7</ISBN> <IsActive>1</IsActive> <IsAssetRevaluation>true</IsAssetRevaluation> <IsRentalAsset>true</IsRentalAsset> <JournalEntryCreditAccountID>1</JournalEntryCreditAccountID> <JournalEntryDebitAccountID>1</JournalEntryDebitAccountID> <LineNumberID>1</LineNumberID> <LocationID>1</LocationID> <LongDesc>sample string 4</LongDesc> <Manufacturer>sample string 9</Manufacturer> <ManufacturerID>1</ManufacturerID> <Model>sample string 13</Model> <MonthlyRentRate>1</MonthlyRentRate> <PartNo>sample string 14</PartNo> <Price>1</Price> <ProductID>1</ProductID> <ProductItemCode>sample string 2</ProductItemCode> <ProductItemName>sample string 1</ProductItemName> <ProductionDate>2025-07-16T06:15:08.4541772+00:00</ProductionDate> <ProductionTime>sample string 24</ProductionTime> <ProjectID>1</ProjectID> <Quantity>1</Quantity> <RentMaintenceType>1</RentMaintenceType> <RentPerMinute>1</RentPerMinute> <RevaluationJournalEntryCreditAccountID>1</RevaluationJournalEntryCreditAccountID> <RevaluationJournalEntryDebitAccountID>1</RevaluationJournalEntryDebitAccountID> <SeasonID>1</SeasonID> <SelectedEstablishmentType xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:long>1</d2p1:long> <d2p1:long>2</d2p1:long> </SelectedEstablishmentType> <SelectedEstablishmentTypes>sample string 20</SelectedEstablishmentTypes> <SerialNumber>sample string 5</SerialNumber> <Series>sample string 15</Series> <ShelfLife>1</ShelfLife> <ShortDesc>sample string 3</ShortDesc> <SizeID>1</SizeID> <StandardFullLoadForCases>1</StandardFullLoadForCases> <SubDivision>sample string 19</SubDivision> <SupplierID xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:long>1</d2p1:long> <d2p1:long>2</d2p1:long> </SupplierID> <Type>sample string 16</Type> <UPC>sample string 6</UPC> <UseID>1</UseID> <WeeklyRentRate>1</WeeklyRentRate> </ProductRequestModel>
multipart/form-data
Sample:
<ProductRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.RequestModel"><AccountGroupID>1</AccountGroupID><AccumulatedDepCreditAccountID>1</AccumulatedDepCreditAccountID><AccumulatedDepDebitAccountID>1</AccumulatedDepDebitAccountID><AssetClassID>1</AssetClassID><AssetMainGroupID>1</AssetMainGroupID><AssetTypeID>1</AssetTypeID><AssetsGroupID>1</AssetsGroupID><AssetsSubGroupID>1</AssetsSubGroupID><Barcode>sample string 8</Barcode><BasicUnitID>1</BasicUnitID><BatchNumber>sample string 23</BatchNumber><BrandID>1</BrandID><CaseNo>sample string 22</CaseNo><CategoryID>1</CategoryID><ChangeBy>11</ChangeBy><ChangeDate>2025-07-16T06:15:08.4385595+00:00</ChangeDate><Color>sample string 17</Color><CompanyID>10</CompanyID><Compare_At>1</Compare_At><Cost>1</Cost><DailyRentRate>1</DailyRentRate><DamagedRate>1</DamagedRate><DelayedRate>1</DelayedRate><DepartmentID>1</DepartmentID><DepreciationExpenseAccountID>1</DepreciationExpenseAccountID><DesignID>1</DesignID><Division>sample string 18</Division><DivisionID>1</DivisionID><ExpiryDate>2025-07-16T06:15:08.4541772+00:00</ExpiryDate><GeoRegionID>1</GeoRegionID><HSCodeID>1</HSCodeID><HourlyRentRate>1</HourlyRentRate><ISBN>sample string 7</ISBN><IsActive>1</IsActive><IsAssetRevaluation>true</IsAssetRevaluation><IsRentalAsset>true</IsRentalAsset><JournalEntryCreditAccountID>1</JournalEntryCreditAccountID><JournalEntryDebitAccountID>1</JournalEntryDebitAccountID><LineNumberID>1</LineNumberID><LocationID>1</LocationID><LongDesc>sample string 4</LongDesc><Manufacturer>sample string 9</Manufacturer><ManufacturerID>1</ManufacturerID><Model>sample string 13</Model><MonthlyRentRate>1</MonthlyRentRate><PartNo>sample string 14</PartNo><Price>1</Price><ProductID>1</ProductID><ProductItemCode>sample string 2</ProductItemCode><ProductItemName>sample string 1</ProductItemName><ProductionDate>2025-07-16T06:15:08.4541772+00:00</ProductionDate><ProductionTime>sample string 24</ProductionTime><ProjectID>1</ProjectID><Quantity>1</Quantity><RentMaintenceType>1</RentMaintenceType><RentPerMinute>1</RentPerMinute><RevaluationJournalEntryCreditAccountID>1</RevaluationJournalEntryCreditAccountID><RevaluationJournalEntryDebitAccountID>1</RevaluationJournalEntryDebitAccountID><SeasonID>1</SeasonID><SelectedEstablishmentType xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d2p1:long>1</d2p1:long><d2p1:long>2</d2p1:long></SelectedEstablishmentType><SelectedEstablishmentTypes>sample string 20</SelectedEstablishmentTypes><SerialNumber>sample string 5</SerialNumber><Series>sample string 15</Series><ShelfLife>1</ShelfLife><ShortDesc>sample string 3</ShortDesc><SizeID>1</SizeID><StandardFullLoadForCases>1</StandardFullLoadForCases><SubDivision>sample string 19</SubDivision><SupplierID xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d2p1:long>1</d2p1:long><d2p1:long>2</d2p1:long></SupplierID><Type>sample string 16</Type><UPC>sample string 6</UPC><UseID>1</UseID><WeeklyRentRate>1</WeeklyRentRate></ProductRequestModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ProductDataModelName | 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:
<ProductDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel"> <Code>4</Code> <Message>sample string 2</Message> <ReturnID>1</ReturnID> <Successful>true</Successful> <TotalRecord>5</TotalRecord> </ProductDataModel>
multipart/form-data
Sample:
<ProductDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel"><Code>4</Code><Message>sample string 2</Message><ReturnID>1</ReturnID><Successful>true</Successful><TotalRecord>5</TotalRecord></ProductDataModel>