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-08-04T22:51:43.9865484+03:00", "purchaseOTV": 12.1, "purchaseDiscount": 13.1, "purchasePrice": 14.1, "isPurchaseKDVInclude": true, "purchaseKDV": 0, "purchaseCurrencyID": "7abe06e3-395e-44c0-92db-205ffda2ba4b", "salePriceGroupOneDto": { "currencyID": "fd72e0b5-086f-4a06-9a0d-da1c4f06e8bc", "productID": "4b2af347-d313-4fde-b673-027864ded2b4", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "d3bad6bc-66cc-4763-9dcf-8dc98474866d", "companyID": "208a9ee7-f877-451a-aa2e-32a39a045a91" }, "salePriceGroupTwoDto": { "currencyID": "fd72e0b5-086f-4a06-9a0d-da1c4f06e8bc", "productID": "4b2af347-d313-4fde-b673-027864ded2b4", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "d3bad6bc-66cc-4763-9dcf-8dc98474866d", "companyID": "208a9ee7-f877-451a-aa2e-32a39a045a91" }, "salePriceGroupThreeDto": { "currencyID": "fd72e0b5-086f-4a06-9a0d-da1c4f06e8bc", "productID": "4b2af347-d313-4fde-b673-027864ded2b4", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "d3bad6bc-66cc-4763-9dcf-8dc98474866d", "companyID": "208a9ee7-f877-451a-aa2e-32a39a045a91" }, "salePriceGroupFourDto": { "currencyID": "fd72e0b5-086f-4a06-9a0d-da1c4f06e8bc", "productID": "4b2af347-d313-4fde-b673-027864ded2b4", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "d3bad6bc-66cc-4763-9dcf-8dc98474866d", "companyID": "208a9ee7-f877-451a-aa2e-32a39a045a91" }, "salePriceGroupFiveDto": { "currencyID": "fd72e0b5-086f-4a06-9a0d-da1c4f06e8bc", "productID": "4b2af347-d313-4fde-b673-027864ded2b4", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "d3bad6bc-66cc-4763-9dcf-8dc98474866d", "companyID": "208a9ee7-f877-451a-aa2e-32a39a045a91" }, "categoryID": "9cd62b74-ffee-4128-ae0d-e4aa6e664c65", "brandID": "5edd34e9-952a-48ae-b5f1-8e53e3f4fed4", "unitID": "bf131bda-678f-4d55-b6ff-81cf3184ed63", "warehouseID": "9fbfd705-b18a-4156-a5f3-f48d81327f51", "gtip": "sample string 16", "producerCountry": "sample string 17", "isDeleted": true, "buyersItemIdentification": "sample string 19", "id": "e7957d07-f800-448d-899a-b697d997a4e4", "companyID": "63a2f3bc-04d2-403e-9786-3432bb121c48" }
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>63a2f3bc-04d2-403e-9786-3432bb121c48</CompanyID> <ID>e7957d07-f800-448d-899a-b697d997a4e4</ID> <Barcode>sample string 3</Barcode> <BrandID>5edd34e9-952a-48ae-b5f1-8e53e3f4fed4</BrandID> <BuyersItemIdentification>sample string 19</BuyersItemIdentification> <CategoryID>9cd62b74-ffee-4128-ae0d-e4aa6e664c65</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>7abe06e3-395e-44c0-92db-205ffda2ba4b</PurchaseCurrencyID> <PurchaseDiscount>13.1</PurchaseDiscount> <PurchaseKDV>KDV0</PurchaseKDV> <PurchaseOTV>12.1</PurchaseOTV> <PurchasePrice>14.1</PurchasePrice> <SalePriceGroupFiveDto> <CompanyID>208a9ee7-f877-451a-aa2e-32a39a045a91</CompanyID> <ID>d3bad6bc-66cc-4763-9dcf-8dc98474866d</ID> <CurrencyID>fd72e0b5-086f-4a06-9a0d-da1c4f06e8bc</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>4b2af347-d313-4fde-b673-027864ded2b4</ProductID> </SalePriceGroupFiveDto> <SalePriceGroupFourDto> <CompanyID>208a9ee7-f877-451a-aa2e-32a39a045a91</CompanyID> <ID>d3bad6bc-66cc-4763-9dcf-8dc98474866d</ID> <CurrencyID>fd72e0b5-086f-4a06-9a0d-da1c4f06e8bc</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>4b2af347-d313-4fde-b673-027864ded2b4</ProductID> </SalePriceGroupFourDto> <SalePriceGroupOneDto> <CompanyID>208a9ee7-f877-451a-aa2e-32a39a045a91</CompanyID> <ID>d3bad6bc-66cc-4763-9dcf-8dc98474866d</ID> <CurrencyID>fd72e0b5-086f-4a06-9a0d-da1c4f06e8bc</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>4b2af347-d313-4fde-b673-027864ded2b4</ProductID> </SalePriceGroupOneDto> <SalePriceGroupThreeDto> <CompanyID>208a9ee7-f877-451a-aa2e-32a39a045a91</CompanyID> <ID>d3bad6bc-66cc-4763-9dcf-8dc98474866d</ID> <CurrencyID>fd72e0b5-086f-4a06-9a0d-da1c4f06e8bc</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>4b2af347-d313-4fde-b673-027864ded2b4</ProductID> </SalePriceGroupThreeDto> <SalePriceGroupTwoDto> <CompanyID>208a9ee7-f877-451a-aa2e-32a39a045a91</CompanyID> <ID>d3bad6bc-66cc-4763-9dcf-8dc98474866d</ID> <CurrencyID>fd72e0b5-086f-4a06-9a0d-da1c4f06e8bc</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>4b2af347-d313-4fde-b673-027864ded2b4</ProductID> </SalePriceGroupTwoDto> <SerialNumber>sample string 9</SerialNumber> <Stock>7.1</Stock> <UnitID>bf131bda-678f-4d55-b6ff-81cf3184ed63</UnitID> <WarehouseID>9fbfd705-b18a-4156-a5f3-f48d81327f51</WarehouseID> <WarrantyEndDate>2025-08-04T22:51:43.9865484+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-08-04T22:51:43.9865484+03:00","purchaseOTV":12.1,"purchaseDiscount":13.1,"purchasePrice":14.1,"isPurchaseKDVInclude":true,"purchaseKDV":0,"purchaseCurrencyID":"7abe06e3-395e-44c0-92db-205ffda2ba4b","salePriceGroupOneDto":{"currencyID":"fd72e0b5-086f-4a06-9a0d-da1c4f06e8bc","productID":"4b2af347-d313-4fde-b673-027864ded2b4","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"d3bad6bc-66cc-4763-9dcf-8dc98474866d","companyID":"208a9ee7-f877-451a-aa2e-32a39a045a91"},"salePriceGroupTwoDto":{"currencyID":"fd72e0b5-086f-4a06-9a0d-da1c4f06e8bc","productID":"4b2af347-d313-4fde-b673-027864ded2b4","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"d3bad6bc-66cc-4763-9dcf-8dc98474866d","companyID":"208a9ee7-f877-451a-aa2e-32a39a045a91"},"salePriceGroupThreeDto":{"currencyID":"fd72e0b5-086f-4a06-9a0d-da1c4f06e8bc","productID":"4b2af347-d313-4fde-b673-027864ded2b4","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"d3bad6bc-66cc-4763-9dcf-8dc98474866d","companyID":"208a9ee7-f877-451a-aa2e-32a39a045a91"},"salePriceGroupFourDto":{"currencyID":"fd72e0b5-086f-4a06-9a0d-da1c4f06e8bc","productID":"4b2af347-d313-4fde-b673-027864ded2b4","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"d3bad6bc-66cc-4763-9dcf-8dc98474866d","companyID":"208a9ee7-f877-451a-aa2e-32a39a045a91"},"salePriceGroupFiveDto":{"currencyID":"fd72e0b5-086f-4a06-9a0d-da1c4f06e8bc","productID":"4b2af347-d313-4fde-b673-027864ded2b4","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"d3bad6bc-66cc-4763-9dcf-8dc98474866d","companyID":"208a9ee7-f877-451a-aa2e-32a39a045a91"},"categoryID":"9cd62b74-ffee-4128-ae0d-e4aa6e664c65","brandID":"5edd34e9-952a-48ae-b5f1-8e53e3f4fed4","unitID":"bf131bda-678f-4d55-b6ff-81cf3184ed63","warehouseID":"9fbfd705-b18a-4156-a5f3-f48d81327f51","gtip":"sample string 16","producerCountry":"sample string 17","isDeleted":true,"buyersItemIdentification":"sample string 19","id":"e7957d07-f800-448d-899a-b697d997a4e4","companyID":"63a2f3bc-04d2-403e-9786-3432bb121c48"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.