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-07-08T21:23:57.3255626+03:00", "purchaseOTV": 12.1, "purchaseDiscount": 13.1, "purchasePrice": 14.1, "isPurchaseKDVInclude": true, "purchaseKDV": 0, "purchaseCurrencyID": "f48c709c-cd0d-42da-bdf8-351f2b8a4821", "salePriceGroupOneDto": { "currencyID": "03b96f4d-cd63-4d32-88d0-04f71c9da9d5", "productID": "20801c73-5e6c-4402-a4db-1e66c11a7224", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "feab1524-4d09-4937-a714-30fc4d6054b2", "companyID": "74befecf-16b2-4fdb-b2f1-7951ea30de64" }, "salePriceGroupTwoDto": { "currencyID": "03b96f4d-cd63-4d32-88d0-04f71c9da9d5", "productID": "20801c73-5e6c-4402-a4db-1e66c11a7224", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "feab1524-4d09-4937-a714-30fc4d6054b2", "companyID": "74befecf-16b2-4fdb-b2f1-7951ea30de64" }, "salePriceGroupThreeDto": { "currencyID": "03b96f4d-cd63-4d32-88d0-04f71c9da9d5", "productID": "20801c73-5e6c-4402-a4db-1e66c11a7224", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "feab1524-4d09-4937-a714-30fc4d6054b2", "companyID": "74befecf-16b2-4fdb-b2f1-7951ea30de64" }, "salePriceGroupFourDto": { "currencyID": "03b96f4d-cd63-4d32-88d0-04f71c9da9d5", "productID": "20801c73-5e6c-4402-a4db-1e66c11a7224", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "feab1524-4d09-4937-a714-30fc4d6054b2", "companyID": "74befecf-16b2-4fdb-b2f1-7951ea30de64" }, "salePriceGroupFiveDto": { "currencyID": "03b96f4d-cd63-4d32-88d0-04f71c9da9d5", "productID": "20801c73-5e6c-4402-a4db-1e66c11a7224", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "feab1524-4d09-4937-a714-30fc4d6054b2", "companyID": "74befecf-16b2-4fdb-b2f1-7951ea30de64" }, "categoryID": "d89ffc29-ce08-48e8-bd72-1c86cdc37d3f", "brandID": "c11651f6-6426-42d4-a75a-d92857c13135", "unitID": "55910a77-bd09-4a4b-bad8-1cd842c87dfb", "warehouseID": "68eb1456-e3b4-4caf-858a-49bf5c94b0cf", "gtip": "sample string 16", "producerCountry": "sample string 17", "isDeleted": true, "buyersItemIdentification": "sample string 19", "id": "5c527321-7bb2-4f8e-aedf-35f864254089", "companyID": "b370af3a-6caf-46eb-a6c0-881c685790cb" }
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>b370af3a-6caf-46eb-a6c0-881c685790cb</CompanyID> <ID>5c527321-7bb2-4f8e-aedf-35f864254089</ID> <Barcode>sample string 3</Barcode> <BrandID>c11651f6-6426-42d4-a75a-d92857c13135</BrandID> <BuyersItemIdentification>sample string 19</BuyersItemIdentification> <CategoryID>d89ffc29-ce08-48e8-bd72-1c86cdc37d3f</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>f48c709c-cd0d-42da-bdf8-351f2b8a4821</PurchaseCurrencyID> <PurchaseDiscount>13.1</PurchaseDiscount> <PurchaseKDV>KDV0</PurchaseKDV> <PurchaseOTV>12.1</PurchaseOTV> <PurchasePrice>14.1</PurchasePrice> <SalePriceGroupFiveDto> <CompanyID>74befecf-16b2-4fdb-b2f1-7951ea30de64</CompanyID> <ID>feab1524-4d09-4937-a714-30fc4d6054b2</ID> <CurrencyID>03b96f4d-cd63-4d32-88d0-04f71c9da9d5</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>20801c73-5e6c-4402-a4db-1e66c11a7224</ProductID> </SalePriceGroupFiveDto> <SalePriceGroupFourDto> <CompanyID>74befecf-16b2-4fdb-b2f1-7951ea30de64</CompanyID> <ID>feab1524-4d09-4937-a714-30fc4d6054b2</ID> <CurrencyID>03b96f4d-cd63-4d32-88d0-04f71c9da9d5</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>20801c73-5e6c-4402-a4db-1e66c11a7224</ProductID> </SalePriceGroupFourDto> <SalePriceGroupOneDto> <CompanyID>74befecf-16b2-4fdb-b2f1-7951ea30de64</CompanyID> <ID>feab1524-4d09-4937-a714-30fc4d6054b2</ID> <CurrencyID>03b96f4d-cd63-4d32-88d0-04f71c9da9d5</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>20801c73-5e6c-4402-a4db-1e66c11a7224</ProductID> </SalePriceGroupOneDto> <SalePriceGroupThreeDto> <CompanyID>74befecf-16b2-4fdb-b2f1-7951ea30de64</CompanyID> <ID>feab1524-4d09-4937-a714-30fc4d6054b2</ID> <CurrencyID>03b96f4d-cd63-4d32-88d0-04f71c9da9d5</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>20801c73-5e6c-4402-a4db-1e66c11a7224</ProductID> </SalePriceGroupThreeDto> <SalePriceGroupTwoDto> <CompanyID>74befecf-16b2-4fdb-b2f1-7951ea30de64</CompanyID> <ID>feab1524-4d09-4937-a714-30fc4d6054b2</ID> <CurrencyID>03b96f4d-cd63-4d32-88d0-04f71c9da9d5</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>20801c73-5e6c-4402-a4db-1e66c11a7224</ProductID> </SalePriceGroupTwoDto> <SerialNumber>sample string 9</SerialNumber> <Stock>7.1</Stock> <UnitID>55910a77-bd09-4a4b-bad8-1cd842c87dfb</UnitID> <WarehouseID>68eb1456-e3b4-4caf-858a-49bf5c94b0cf</WarehouseID> <WarrantyEndDate>2025-07-08T21:23:57.3255626+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-07-08T21:23:57.3255626+03:00","purchaseOTV":12.1,"purchaseDiscount":13.1,"purchasePrice":14.1,"isPurchaseKDVInclude":true,"purchaseKDV":0,"purchaseCurrencyID":"f48c709c-cd0d-42da-bdf8-351f2b8a4821","salePriceGroupOneDto":{"currencyID":"03b96f4d-cd63-4d32-88d0-04f71c9da9d5","productID":"20801c73-5e6c-4402-a4db-1e66c11a7224","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"feab1524-4d09-4937-a714-30fc4d6054b2","companyID":"74befecf-16b2-4fdb-b2f1-7951ea30de64"},"salePriceGroupTwoDto":{"currencyID":"03b96f4d-cd63-4d32-88d0-04f71c9da9d5","productID":"20801c73-5e6c-4402-a4db-1e66c11a7224","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"feab1524-4d09-4937-a714-30fc4d6054b2","companyID":"74befecf-16b2-4fdb-b2f1-7951ea30de64"},"salePriceGroupThreeDto":{"currencyID":"03b96f4d-cd63-4d32-88d0-04f71c9da9d5","productID":"20801c73-5e6c-4402-a4db-1e66c11a7224","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"feab1524-4d09-4937-a714-30fc4d6054b2","companyID":"74befecf-16b2-4fdb-b2f1-7951ea30de64"},"salePriceGroupFourDto":{"currencyID":"03b96f4d-cd63-4d32-88d0-04f71c9da9d5","productID":"20801c73-5e6c-4402-a4db-1e66c11a7224","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"feab1524-4d09-4937-a714-30fc4d6054b2","companyID":"74befecf-16b2-4fdb-b2f1-7951ea30de64"},"salePriceGroupFiveDto":{"currencyID":"03b96f4d-cd63-4d32-88d0-04f71c9da9d5","productID":"20801c73-5e6c-4402-a4db-1e66c11a7224","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"feab1524-4d09-4937-a714-30fc4d6054b2","companyID":"74befecf-16b2-4fdb-b2f1-7951ea30de64"},"categoryID":"d89ffc29-ce08-48e8-bd72-1c86cdc37d3f","brandID":"c11651f6-6426-42d4-a75a-d92857c13135","unitID":"55910a77-bd09-4a4b-bad8-1cd842c87dfb","warehouseID":"68eb1456-e3b4-4caf-858a-49bf5c94b0cf","gtip":"sample string 16","producerCountry":"sample string 17","isDeleted":true,"buyersItemIdentification":"sample string 19","id":"5c527321-7bb2-4f8e-aedf-35f864254089","companyID":"b370af3a-6caf-46eb-a6c0-881c685790cb"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.