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-24T17:00:54.895795+03:00", "purchaseOTV": 12.1, "purchaseDiscount": 13.1, "purchasePrice": 14.1, "isPurchaseKDVInclude": true, "purchaseKDV": 0, "purchaseCurrencyID": "9f4ba3f6-e577-43b5-ad85-f84cb022eec3", "salePriceGroupOneDto": { "currencyID": "0aebd657-8ae7-4bd9-8dfc-cbbf688ed1d4", "productID": "40981942-3bfe-466a-bb32-711886346b08", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "6aac11b8-aae6-4915-8531-d6b2686a8e8a", "companyID": "bdba3277-2472-4d34-bed5-ac05aa331e46" }, "salePriceGroupTwoDto": { "currencyID": "0aebd657-8ae7-4bd9-8dfc-cbbf688ed1d4", "productID": "40981942-3bfe-466a-bb32-711886346b08", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "6aac11b8-aae6-4915-8531-d6b2686a8e8a", "companyID": "bdba3277-2472-4d34-bed5-ac05aa331e46" }, "salePriceGroupThreeDto": { "currencyID": "0aebd657-8ae7-4bd9-8dfc-cbbf688ed1d4", "productID": "40981942-3bfe-466a-bb32-711886346b08", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "6aac11b8-aae6-4915-8531-d6b2686a8e8a", "companyID": "bdba3277-2472-4d34-bed5-ac05aa331e46" }, "salePriceGroupFourDto": { "currencyID": "0aebd657-8ae7-4bd9-8dfc-cbbf688ed1d4", "productID": "40981942-3bfe-466a-bb32-711886346b08", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "6aac11b8-aae6-4915-8531-d6b2686a8e8a", "companyID": "bdba3277-2472-4d34-bed5-ac05aa331e46" }, "salePriceGroupFiveDto": { "currencyID": "0aebd657-8ae7-4bd9-8dfc-cbbf688ed1d4", "productID": "40981942-3bfe-466a-bb32-711886346b08", "isKDVInclude": true, "kdv": 0, "price": 2.1, "oiv": 3.1, "otv": 4.1, "oivCode": "sample string 5", "otvCode": "sample string 6", "id": "6aac11b8-aae6-4915-8531-d6b2686a8e8a", "companyID": "bdba3277-2472-4d34-bed5-ac05aa331e46" }, "categoryID": "ab34fc6c-3dfc-44c2-bdb4-967cb2493e48", "brandID": "92989abd-e76f-4439-a0c9-922bbdf47a2c", "unitID": "70b6d826-c83c-4ea6-b23b-6f82af6605a0", "warehouseID": "ed9ac342-7c43-43ea-b773-e1a00dc27a22", "gtip": "sample string 16", "producerCountry": "sample string 17", "isDeleted": true, "buyersItemIdentification": "sample string 19", "id": "40c71acb-e2aa-4489-8e06-bc5e0d7b0aea", "companyID": "fffabfca-4c28-45d9-9603-1cb2c67449c5" }
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>fffabfca-4c28-45d9-9603-1cb2c67449c5</CompanyID> <ID>40c71acb-e2aa-4489-8e06-bc5e0d7b0aea</ID> <Barcode>sample string 3</Barcode> <BrandID>92989abd-e76f-4439-a0c9-922bbdf47a2c</BrandID> <BuyersItemIdentification>sample string 19</BuyersItemIdentification> <CategoryID>ab34fc6c-3dfc-44c2-bdb4-967cb2493e48</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>9f4ba3f6-e577-43b5-ad85-f84cb022eec3</PurchaseCurrencyID> <PurchaseDiscount>13.1</PurchaseDiscount> <PurchaseKDV>KDV0</PurchaseKDV> <PurchaseOTV>12.1</PurchaseOTV> <PurchasePrice>14.1</PurchasePrice> <SalePriceGroupFiveDto> <CompanyID>bdba3277-2472-4d34-bed5-ac05aa331e46</CompanyID> <ID>6aac11b8-aae6-4915-8531-d6b2686a8e8a</ID> <CurrencyID>0aebd657-8ae7-4bd9-8dfc-cbbf688ed1d4</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>40981942-3bfe-466a-bb32-711886346b08</ProductID> </SalePriceGroupFiveDto> <SalePriceGroupFourDto> <CompanyID>bdba3277-2472-4d34-bed5-ac05aa331e46</CompanyID> <ID>6aac11b8-aae6-4915-8531-d6b2686a8e8a</ID> <CurrencyID>0aebd657-8ae7-4bd9-8dfc-cbbf688ed1d4</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>40981942-3bfe-466a-bb32-711886346b08</ProductID> </SalePriceGroupFourDto> <SalePriceGroupOneDto> <CompanyID>bdba3277-2472-4d34-bed5-ac05aa331e46</CompanyID> <ID>6aac11b8-aae6-4915-8531-d6b2686a8e8a</ID> <CurrencyID>0aebd657-8ae7-4bd9-8dfc-cbbf688ed1d4</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>40981942-3bfe-466a-bb32-711886346b08</ProductID> </SalePriceGroupOneDto> <SalePriceGroupThreeDto> <CompanyID>bdba3277-2472-4d34-bed5-ac05aa331e46</CompanyID> <ID>6aac11b8-aae6-4915-8531-d6b2686a8e8a</ID> <CurrencyID>0aebd657-8ae7-4bd9-8dfc-cbbf688ed1d4</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>40981942-3bfe-466a-bb32-711886346b08</ProductID> </SalePriceGroupThreeDto> <SalePriceGroupTwoDto> <CompanyID>bdba3277-2472-4d34-bed5-ac05aa331e46</CompanyID> <ID>6aac11b8-aae6-4915-8531-d6b2686a8e8a</ID> <CurrencyID>0aebd657-8ae7-4bd9-8dfc-cbbf688ed1d4</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>40981942-3bfe-466a-bb32-711886346b08</ProductID> </SalePriceGroupTwoDto> <SerialNumber>sample string 9</SerialNumber> <Stock>7.1</Stock> <UnitID>70b6d826-c83c-4ea6-b23b-6f82af6605a0</UnitID> <WarehouseID>ed9ac342-7c43-43ea-b773-e1a00dc27a22</WarehouseID> <WarrantyEndDate>2025-05-24T17:00:54.895795+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-24T17:00:54.895795+03:00","purchaseOTV":12.1,"purchaseDiscount":13.1,"purchasePrice":14.1,"isPurchaseKDVInclude":true,"purchaseKDV":0,"purchaseCurrencyID":"9f4ba3f6-e577-43b5-ad85-f84cb022eec3","salePriceGroupOneDto":{"currencyID":"0aebd657-8ae7-4bd9-8dfc-cbbf688ed1d4","productID":"40981942-3bfe-466a-bb32-711886346b08","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"6aac11b8-aae6-4915-8531-d6b2686a8e8a","companyID":"bdba3277-2472-4d34-bed5-ac05aa331e46"},"salePriceGroupTwoDto":{"currencyID":"0aebd657-8ae7-4bd9-8dfc-cbbf688ed1d4","productID":"40981942-3bfe-466a-bb32-711886346b08","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"6aac11b8-aae6-4915-8531-d6b2686a8e8a","companyID":"bdba3277-2472-4d34-bed5-ac05aa331e46"},"salePriceGroupThreeDto":{"currencyID":"0aebd657-8ae7-4bd9-8dfc-cbbf688ed1d4","productID":"40981942-3bfe-466a-bb32-711886346b08","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"6aac11b8-aae6-4915-8531-d6b2686a8e8a","companyID":"bdba3277-2472-4d34-bed5-ac05aa331e46"},"salePriceGroupFourDto":{"currencyID":"0aebd657-8ae7-4bd9-8dfc-cbbf688ed1d4","productID":"40981942-3bfe-466a-bb32-711886346b08","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"6aac11b8-aae6-4915-8531-d6b2686a8e8a","companyID":"bdba3277-2472-4d34-bed5-ac05aa331e46"},"salePriceGroupFiveDto":{"currencyID":"0aebd657-8ae7-4bd9-8dfc-cbbf688ed1d4","productID":"40981942-3bfe-466a-bb32-711886346b08","isKDVInclude":true,"kdv":0,"price":2.1,"oiv":3.1,"otv":4.1,"oivCode":"sample string 5","otvCode":"sample string 6","id":"6aac11b8-aae6-4915-8531-d6b2686a8e8a","companyID":"bdba3277-2472-4d34-bed5-ac05aa331e46"},"categoryID":"ab34fc6c-3dfc-44c2-bdb4-967cb2493e48","brandID":"92989abd-e76f-4439-a0c9-922bbdf47a2c","unitID":"70b6d826-c83c-4ea6-b23b-6f82af6605a0","warehouseID":"ed9ac342-7c43-43ea-b773-e1a00dc27a22","gtip":"sample string 16","producerCountry":"sample string 17","isDeleted":true,"buyersItemIdentification":"sample string 19","id":"40c71acb-e2aa-4489-8e06-bc5e0d7b0aea","companyID":"fffabfca-4c28-45d9-9603-1cb2c67449c5"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.