PUT api/Product/Update
Request Information
URI Parameters
None.
Body Parameters
ProductUpdateDtoName | Description | Type | Additional information |
---|---|---|---|
Code | string |
None. |
|
Name | string |
None. |
|
ProductType | ProductType |
None. |
|
Barcode | string |
None. |
|
Description | string |
None. |
|
Photo | string |
None. |
|
IsStockTracking | boolean |
None. |
|
Stock | decimal number |
None. |
|
MinStockValue | decimal number |
None. |
|
SerialNumber | string |
None. |
|
Model | string |
None. |
|
IsWarranty | boolean |
None. |
|
WarrantyEndDate | date |
None. |
|
PurchaseOTV | decimal number |
None. |
|
PurchaseDiscount | decimal number |
None. |
|
PurchasePrice | decimal number |
None. |
|
IsPurchaseKDVInclude | boolean |
None. |
|
PurchaseKDV | KDV |
None. |
|
PurchaseCurrencyID | globally unique identifier |
None. |
|
SalePriceGroupOneDto | SalePriceGroupUpdateDto |
None. |
|
SalePriceGroupTwoDto | SalePriceGroupUpdateDto |
None. |
|
SalePriceGroupThreeDto | SalePriceGroupUpdateDto |
None. |
|
SalePriceGroupFourDto | SalePriceGroupUpdateDto |
None. |
|
SalePriceGroupFiveDto | SalePriceGroupUpdateDto |
None. |
|
CategoryID | globally unique identifier |
None. |
|
BrandID | globally unique identifier |
None. |
|
UnitID | globally unique identifier |
None. |
|
WarehouseID | globally unique identifier |
None. |
|
Gtip | string |
None. |
|
ProducerCountry | string |
None. |
|
IsDeleted | boolean |
None. |
|
BuyersItemIdentification | string |
None. |
|
ID | globally unique identifier |
Required |
|
CompanyID | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "code": "sample string 1", "name": "sample string 2", "productType": 1, "barcode": "sample string 3", "description": "sample string 4", "photo": "sample string 5", "isStockTracking": true, "stock": 7.1, "minStockValue": 8.1, "serialNumber": "sample string 9", "model": "sample string 10", "isWarranty": true, "warrantyEndDate": "2025-05-24T14:45:29.2314549+03:00", "purchaseOTV": 12.1, "purchaseDiscount": 13.1, "purchasePrice": 14.1, "isPurchaseKDVInclude": true, "purchaseKDV": 0, "purchaseCurrencyID": "fe61b02c-e91f-42c3-9ec6-767972d891e0", "salePriceGroupOneDto": { "currencyID": "8a6da80c-0228-44af-8921-66c3529cfa2f", "productID": "f8bfe952-d254-44bc-b9cb-ec7156097cc6", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "0b9e300c-fa21-4786-a7d7-97d4895862f0", "companyID": "3517a64c-5a4b-4e1b-981b-927cce13fa21" }, "salePriceGroupTwoDto": { "currencyID": "8a6da80c-0228-44af-8921-66c3529cfa2f", "productID": "f8bfe952-d254-44bc-b9cb-ec7156097cc6", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "0b9e300c-fa21-4786-a7d7-97d4895862f0", "companyID": "3517a64c-5a4b-4e1b-981b-927cce13fa21" }, "salePriceGroupThreeDto": { "currencyID": "8a6da80c-0228-44af-8921-66c3529cfa2f", "productID": "f8bfe952-d254-44bc-b9cb-ec7156097cc6", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "0b9e300c-fa21-4786-a7d7-97d4895862f0", "companyID": "3517a64c-5a4b-4e1b-981b-927cce13fa21" }, "salePriceGroupFourDto": { "currencyID": "8a6da80c-0228-44af-8921-66c3529cfa2f", "productID": "f8bfe952-d254-44bc-b9cb-ec7156097cc6", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "0b9e300c-fa21-4786-a7d7-97d4895862f0", "companyID": "3517a64c-5a4b-4e1b-981b-927cce13fa21" }, "salePriceGroupFiveDto": { "currencyID": "8a6da80c-0228-44af-8921-66c3529cfa2f", "productID": "f8bfe952-d254-44bc-b9cb-ec7156097cc6", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "0b9e300c-fa21-4786-a7d7-97d4895862f0", "companyID": "3517a64c-5a4b-4e1b-981b-927cce13fa21" }, "categoryID": "99bfb137-459c-4116-985a-7f6fc5dab87a", "brandID": "3f501ee8-a51b-4c3e-8ea5-88534e0235de", "unitID": "9f673776-85d6-44fd-9df3-9b4abf2038a8", "warehouseID": "5c8038c4-f232-4d2b-b0e1-21f25596a4ff", "gtip": "sample string 16", "producerCountry": "sample string 17", "isDeleted": true, "buyersItemIdentification": "sample string 19", "id": "d5ba568b-cde1-4bb1-a77f-5f61b164d6b9", "companyID": "efd80f2d-fe3f-4778-af75-1f57c80baaae" }
application/xml, text/xml
Sample:
<ProductUpdateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TP.TulTrack.Core.Service.DTOs"> <CompanyID>efd80f2d-fe3f-4778-af75-1f57c80baaae</CompanyID> <ID>d5ba568b-cde1-4bb1-a77f-5f61b164d6b9</ID> <Barcode>sample string 3</Barcode> <BrandID>3f501ee8-a51b-4c3e-8ea5-88534e0235de</BrandID> <BuyersItemIdentification>sample string 19</BuyersItemIdentification> <CategoryID>99bfb137-459c-4116-985a-7f6fc5dab87a</CategoryID> <Code>sample string 1</Code> <Description>sample string 4</Description> <Gtip>sample string 16</Gtip> <IsDeleted>true</IsDeleted> <IsPurchaseKDVInclude>true</IsPurchaseKDVInclude> <IsStockTracking>true</IsStockTracking> <IsWarranty>true</IsWarranty> <MinStockValue>8.1</MinStockValue> <Model>sample string 10</Model> <Name>sample string 2</Name> <Photo>sample string 5</Photo> <ProducerCountry>sample string 17</ProducerCountry> <ProductType>Product</ProductType> <PurchaseCurrencyID>fe61b02c-e91f-42c3-9ec6-767972d891e0</PurchaseCurrencyID> <PurchaseDiscount>13.1</PurchaseDiscount> <PurchaseKDV>KDV0</PurchaseKDV> <PurchaseOTV>12.1</PurchaseOTV> <PurchasePrice>14.1</PurchasePrice> <SalePriceGroupFiveDto> <CompanyID>3517a64c-5a4b-4e1b-981b-927cce13fa21</CompanyID> <ID>0b9e300c-fa21-4786-a7d7-97d4895862f0</ID> <CurrencyID>8a6da80c-0228-44af-8921-66c3529cfa2f</CurrencyID> <IsKDVInclude>true</IsKDVInclude> <KDV>KDV0</KDV> <OIV>3.1</OIV> <OIVCode>sample string 5</OIVCode> <OTV>4.1</OTV> <OTVCode>sample string 6</OTVCode> <Price>2.1</Price> <ProductID>f8bfe952-d254-44bc-b9cb-ec7156097cc6</ProductID> </SalePriceGroupFiveDto> <SalePriceGroupFourDto> <CompanyID>3517a64c-5a4b-4e1b-981b-927cce13fa21</CompanyID> <ID>0b9e300c-fa21-4786-a7d7-97d4895862f0</ID> <CurrencyID>8a6da80c-0228-44af-8921-66c3529cfa2f</CurrencyID> <IsKDVInclude>true</IsKDVInclude> <KDV>KDV0</KDV> <OIV>3.1</OIV> <OIVCode>sample string 5</OIVCode> <OTV>4.1</OTV> <OTVCode>sample string 6</OTVCode> <Price>2.1</Price> <ProductID>f8bfe952-d254-44bc-b9cb-ec7156097cc6</ProductID> </SalePriceGroupFourDto> <SalePriceGroupOneDto> <CompanyID>3517a64c-5a4b-4e1b-981b-927cce13fa21</CompanyID> <ID>0b9e300c-fa21-4786-a7d7-97d4895862f0</ID> <CurrencyID>8a6da80c-0228-44af-8921-66c3529cfa2f</CurrencyID> <IsKDVInclude>true</IsKDVInclude> <KDV>KDV0</KDV> <OIV>3.1</OIV> <OIVCode>sample string 5</OIVCode> <OTV>4.1</OTV> <OTVCode>sample string 6</OTVCode> <Price>2.1</Price> <ProductID>f8bfe952-d254-44bc-b9cb-ec7156097cc6</ProductID> </SalePriceGroupOneDto> <SalePriceGroupThreeDto> <CompanyID>3517a64c-5a4b-4e1b-981b-927cce13fa21</CompanyID> <ID>0b9e300c-fa21-4786-a7d7-97d4895862f0</ID> <CurrencyID>8a6da80c-0228-44af-8921-66c3529cfa2f</CurrencyID> <IsKDVInclude>true</IsKDVInclude> <KDV>KDV0</KDV> <OIV>3.1</OIV> <OIVCode>sample string 5</OIVCode> <OTV>4.1</OTV> <OTVCode>sample string 6</OTVCode> <Price>2.1</Price> <ProductID>f8bfe952-d254-44bc-b9cb-ec7156097cc6</ProductID> </SalePriceGroupThreeDto> <SalePriceGroupTwoDto> <CompanyID>3517a64c-5a4b-4e1b-981b-927cce13fa21</CompanyID> <ID>0b9e300c-fa21-4786-a7d7-97d4895862f0</ID> <CurrencyID>8a6da80c-0228-44af-8921-66c3529cfa2f</CurrencyID> <IsKDVInclude>true</IsKDVInclude> <KDV>KDV0</KDV> <OIV>3.1</OIV> <OIVCode>sample string 5</OIVCode> <OTV>4.1</OTV> <OTVCode>sample string 6</OTVCode> <Price>2.1</Price> <ProductID>f8bfe952-d254-44bc-b9cb-ec7156097cc6</ProductID> </SalePriceGroupTwoDto> <SerialNumber>sample string 9</SerialNumber> <Stock>7.1</Stock> <UnitID>9f673776-85d6-44fd-9df3-9b4abf2038a8</UnitID> <WarehouseID>5c8038c4-f232-4d2b-b0e1-21f25596a4ff</WarehouseID> <WarrantyEndDate>2025-05-24T14:45:29.2314549+03:00</WarrantyEndDate> </ProductUpdateDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"code":"sample string 1","name":"sample string 2","productType":1,"barcode":"sample string 3","description":"sample string 4","photo":"sample string 5","isStockTracking":true,"stock":7.1,"minStockValue":8.1,"serialNumber":"sample string 9","model":"sample string 10","isWarranty":true,"warrantyEndDate":"2025-05-24T14:45:29.2314549+03:00","purchaseOTV":12.1,"purchaseDiscount":13.1,"purchasePrice":14.1,"isPurchaseKDVInclude":true,"purchaseKDV":0,"purchaseCurrencyID":"fe61b02c-e91f-42c3-9ec6-767972d891e0","salePriceGroupOneDto":{"currencyID":"8a6da80c-0228-44af-8921-66c3529cfa2f","productID":"f8bfe952-d254-44bc-b9cb-ec7156097cc6","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"0b9e300c-fa21-4786-a7d7-97d4895862f0","companyID":"3517a64c-5a4b-4e1b-981b-927cce13fa21"},"salePriceGroupTwoDto":{"currencyID":"8a6da80c-0228-44af-8921-66c3529cfa2f","productID":"f8bfe952-d254-44bc-b9cb-ec7156097cc6","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"0b9e300c-fa21-4786-a7d7-97d4895862f0","companyID":"3517a64c-5a4b-4e1b-981b-927cce13fa21"},"salePriceGroupThreeDto":{"currencyID":"8a6da80c-0228-44af-8921-66c3529cfa2f","productID":"f8bfe952-d254-44bc-b9cb-ec7156097cc6","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"0b9e300c-fa21-4786-a7d7-97d4895862f0","companyID":"3517a64c-5a4b-4e1b-981b-927cce13fa21"},"salePriceGroupFourDto":{"currencyID":"8a6da80c-0228-44af-8921-66c3529cfa2f","productID":"f8bfe952-d254-44bc-b9cb-ec7156097cc6","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"0b9e300c-fa21-4786-a7d7-97d4895862f0","companyID":"3517a64c-5a4b-4e1b-981b-927cce13fa21"},"salePriceGroupFiveDto":{"currencyID":"8a6da80c-0228-44af-8921-66c3529cfa2f","productID":"f8bfe952-d254-44bc-b9cb-ec7156097cc6","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"0b9e300c-fa21-4786-a7d7-97d4895862f0","companyID":"3517a64c-5a4b-4e1b-981b-927cce13fa21"},"categoryID":"99bfb137-459c-4116-985a-7f6fc5dab87a","brandID":"3f501ee8-a51b-4c3e-8ea5-88534e0235de","unitID":"9f673776-85d6-44fd-9df3-9b4abf2038a8","warehouseID":"5c8038c4-f232-4d2b-b0e1-21f25596a4ff","gtip":"sample string 16","producerCountry":"sample string 17","isDeleted":true,"buyersItemIdentification":"sample string 19","id":"d5ba568b-cde1-4bb1-a77f-5f61b164d6b9","companyID":"efd80f2d-fe3f-4778-af75-1f57c80baaae"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.