PUT api/{database}/Product/{productId}

No Documentation Found.



Request Information

Parameters

NameDescriptionAdditional information
productId No Documentation Found.

Define this parameter in the request URI.

value No Documentation Found.

Define this parameter in the request body.

$expand Components ProductDescriptions ProductSuppliers Stocks

Define this parameter in the request URI.

Request body formats

application/json, text/json

Sample:
{
  "accountId": "sample string 1",
  "additionalUnits": 2.0,
  "messages": [],
  "canChange": true,
  "cannotChangeReason": "sample string 4",
  "components": null,
  "constellationNotition": "sample string 5",
  "countryOfOrigin": "sample string 6",
  "coverageAccountId": "sample string 7",
  "currentStock": 8.0,
  "dateCreated": "sample string 9",
  "description": "sample string 10",
  "discountAccountId": "sample string 11",
  "eanCode": "sample string 12",
  "intrastatCode": 13,
  "lastUpdate": "sample string 14",
  "margin": 15.0,
  "maxStock": 16.0,
  "minStock": 17.0,
  "preferredProductSupplier": {
    "messages": [],
    "canChange": true,
    "cannotChangeReason": "sample string 2",
    "currencyId": "sample string 3",
    "discountPercentage": 4.0,
    "minOrderQuantity": 5.0,
    "partNumber": "sample string 6",
    "preferred": true,
    "price": 8.0,
    "productSupplierId": "sample string 9",
    "purchaseSurchargePercentage": 10.0
  },
  "pricePer": 18.0,
  "priceVatExcl": 19.0,
  "priceVatIncl": 20.0,
  "printOnInvoice": true,
  "printOnQuote": true,
  "printOnShippingOrder": true,
  "printOnWarehouseOrder": true,
  "productDescriptions": null,
  "productDiscountGroupId": "sample string 25",
  "productGroupId": "sample string 26",
  "productId": "sample string 27",
  "productState": 0,
  "productSuppliers": null,
  "productType": 0,
  "projectEntryType": 0,
  "projectSurchargePerc": 28.0,
  "publishOnWeb": true,
  "purchaseOrderCount": 30,
  "quantityScale": 31,
  "shortName": "sample string 32",
  "stocks": null,
  "stockTransactionCount": 33,
  "stockTransferPrice": 34.0,
  "unit": "sample string 35",
  "vatCodeId": 36,
  "weight": 37.0
}

application/xml, text/xml

Sample:
<Product xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Logistics.Edit">
  <AccountId>sample string 1</AccountId>
  <AdditionalUnits>2</AdditionalUnits>
  <CanChange>true</CanChange>
  <CannotChangeReason>sample string 4</CannotChangeReason>
  <Components xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Logistics.Lists" i:nil="true" />
  <ConstellationNotition>sample string 5</ConstellationNotition>
  <CountryOfOrigin>sample string 6</CountryOfOrigin>
  <CoverageAccountId>sample string 7</CoverageAccountId>
  <CurrentStock>8</CurrentStock>
  <DateCreated>sample string 9</DateCreated>
  <Description>sample string 10</Description>
  <DiscountAccountId>sample string 11</DiscountAccountId>
  <EANCode>sample string 12</EANCode>
  <IntrastatCode>13</IntrastatCode>
  <LastUpdate>sample string 14</LastUpdate>
  <Margin>15</Margin>
  <MaxStock>16</MaxStock>
  <Messages xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.Web.WebApi.Core.Models" />
  <MinStock>17</MinStock>
  <PreferredProductSupplier>
    <CanChange>true</CanChange>
    <CannotChangeReason>sample string 2</CannotChangeReason>
    <CurrencyId>sample string 3</CurrencyId>
    <DiscountPercentage>4</DiscountPercentage>
    <Messages xmlns:d3p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.Web.WebApi.Core.Models" />
    <MinOrderQuantity>5</MinOrderQuantity>
    <PartNumber>sample string 6</PartNumber>
    <Preferred>true</Preferred>
    <Price>8</Price>
    <ProductSupplierId>sample string 9</ProductSupplierId>
    <PurchaseSurchargePercentage>10</PurchaseSurchargePercentage>
  </PreferredProductSupplier>
  <PricePer>18</PricePer>
  <PriceVatExcl>19</PriceVatExcl>
  <PriceVatIncl>20</PriceVatIncl>
  <PrintOnInvoice>true</PrintOnInvoice>
  <PrintOnQuote>true</PrintOnQuote>
  <PrintOnShippingOrder>true</PrintOnShippingOrder>
  <PrintOnWarehouseOrder>true</PrintOnWarehouseOrder>
  <ProductDescriptions xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Logistics.Lists" i:nil="true" />
  <ProductDiscountGroupId>sample string 25</ProductDiscountGroupId>
  <ProductGroupId>sample string 26</ProductGroupId>
  <ProductId>sample string 27</ProductId>
  <ProductState>Active</ProductState>
  <ProductSuppliers xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Logistics.Lists" i:nil="true" />
  <ProductType>NonStockProduct</ProductType>
  <ProjectEntryType>None</ProjectEntryType>
  <ProjectSurchargePerc>28</ProjectSurchargePerc>
  <PublishOnWeb>true</PublishOnWeb>
  <PurchaseOrderCount>30</PurchaseOrderCount>
  <QuantityScale>31</QuantityScale>
  <ShortName>sample string 32</ShortName>
  <StockTransactionCount>33</StockTransactionCount>
  <StockTransferPrice>34</StockTransferPrice>
  <Stocks xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Logistics.Lists" i:nil="true" />
  <Unit>sample string 35</Unit>
  <VatCodeId>36</VatCodeId>
  <Weight>37</Weight>
</Product>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ProductProxy'.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "accountId": "sample string 1",
  "additionalUnits": 2.0,
  "messages": [],
  "canChange": true,
  "cannotChangeReason": "sample string 4",
  "components": null,
  "constellationNotition": "sample string 5",
  "countryOfOrigin": "sample string 6",
  "coverageAccountId": "sample string 7",
  "currentStock": 8.0,
  "dateCreated": "sample string 9",
  "description": "sample string 10",
  "discountAccountId": "sample string 11",
  "eanCode": "sample string 12",
  "intrastatCode": 13,
  "lastUpdate": "sample string 14",
  "margin": 15.0,
  "maxStock": 16.0,
  "minStock": 17.0,
  "preferredProductSupplier": {
    "messages": [],
    "canChange": true,
    "cannotChangeReason": "sample string 2",
    "currencyId": "sample string 3",
    "discountPercentage": 4.0,
    "minOrderQuantity": 5.0,
    "partNumber": "sample string 6",
    "preferred": true,
    "price": 8.0,
    "productSupplierId": "sample string 9",
    "purchaseSurchargePercentage": 10.0
  },
  "pricePer": 18.0,
  "priceVatExcl": 19.0,
  "priceVatIncl": 20.0,
  "printOnInvoice": true,
  "printOnQuote": true,
  "printOnShippingOrder": true,
  "printOnWarehouseOrder": true,
  "productDescriptions": null,
  "productDiscountGroupId": "sample string 25",
  "productGroupId": "sample string 26",
  "productId": "sample string 27",
  "productState": 0,
  "productSuppliers": null,
  "productType": 0,
  "projectEntryType": 0,
  "projectSurchargePerc": 28.0,
  "publishOnWeb": true,
  "purchaseOrderCount": 30,
  "quantityScale": 31,
  "shortName": "sample string 32",
  "stocks": null,
  "stockTransactionCount": 33,
  "stockTransferPrice": 34.0,
  "unit": "sample string 35",
  "vatCodeId": 36,
  "weight": 37.0
}

application/xml, text/xml

Sample:
<Product xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Logistics.Edit">
  <AccountId>sample string 1</AccountId>
  <AdditionalUnits>2</AdditionalUnits>
  <CanChange>true</CanChange>
  <CannotChangeReason>sample string 4</CannotChangeReason>
  <Components xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Logistics.Lists" i:nil="true" />
  <ConstellationNotition>sample string 5</ConstellationNotition>
  <CountryOfOrigin>sample string 6</CountryOfOrigin>
  <CoverageAccountId>sample string 7</CoverageAccountId>
  <CurrentStock>8</CurrentStock>
  <DateCreated>sample string 9</DateCreated>
  <Description>sample string 10</Description>
  <DiscountAccountId>sample string 11</DiscountAccountId>
  <EANCode>sample string 12</EANCode>
  <IntrastatCode>13</IntrastatCode>
  <LastUpdate>sample string 14</LastUpdate>
  <Margin>15</Margin>
  <MaxStock>16</MaxStock>
  <Messages xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.Web.WebApi.Core.Models" />
  <MinStock>17</MinStock>
  <PreferredProductSupplier>
    <CanChange>true</CanChange>
    <CannotChangeReason>sample string 2</CannotChangeReason>
    <CurrencyId>sample string 3</CurrencyId>
    <DiscountPercentage>4</DiscountPercentage>
    <Messages xmlns:d3p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.Web.WebApi.Core.Models" />
    <MinOrderQuantity>5</MinOrderQuantity>
    <PartNumber>sample string 6</PartNumber>
    <Preferred>true</Preferred>
    <Price>8</Price>
    <ProductSupplierId>sample string 9</ProductSupplierId>
    <PurchaseSurchargePercentage>10</PurchaseSurchargePercentage>
  </PreferredProductSupplier>
  <PricePer>18</PricePer>
  <PriceVatExcl>19</PriceVatExcl>
  <PriceVatIncl>20</PriceVatIncl>
  <PrintOnInvoice>true</PrintOnInvoice>
  <PrintOnQuote>true</PrintOnQuote>
  <PrintOnShippingOrder>true</PrintOnShippingOrder>
  <PrintOnWarehouseOrder>true</PrintOnWarehouseOrder>
  <ProductDescriptions xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Logistics.Lists" i:nil="true" />
  <ProductDiscountGroupId>sample string 25</ProductDiscountGroupId>
  <ProductGroupId>sample string 26</ProductGroupId>
  <ProductId>sample string 27</ProductId>
  <ProductState>Active</ProductState>
  <ProductSuppliers xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Logistics.Lists" i:nil="true" />
  <ProductType>NonStockProduct</ProductType>
  <ProjectEntryType>None</ProjectEntryType>
  <ProjectSurchargePerc>28</ProjectSurchargePerc>
  <PublishOnWeb>true</PublishOnWeb>
  <PurchaseOrderCount>30</PurchaseOrderCount>
  <QuantityScale>31</QuantityScale>
  <ShortName>sample string 32</ShortName>
  <StockTransactionCount>33</StockTransactionCount>
  <StockTransferPrice>34</StockTransferPrice>
  <Stocks xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Logistics.Lists" i:nil="true" />
  <Unit>sample string 35</Unit>
  <VatCodeId>36</VatCodeId>
  <Weight>37</Weight>
</Product>