PUT api/Inventory/Lines

Updates a list of existing inventory basis lines

Request Information

URI Parameters

None.

Body Parameters

A list of any parameters related to existing lines that needs to be updated

Collection of UpdateInventoryBasisLineRequest
NameDescriptionTypeAdditional information
Id

integer

Required

InventoryBasisHeadId

globally unique identifier

Required

StockId

globally unique identifier

Required

ArticleId

globally unique identifier

Required

ArticleNo

integer

Required

Description

string

Max length: 50

Quantity

decimal number

None.

Unit

integer

None.

Cost

decimal number

None.

Recyclefee

decimal number

Required

ReasonId

integer

None.

Inventoried

boolean

Required

StockBalance

decimal number

None.

SupplierArticleNo

string

Max length: 128

ReservedQuantity

decimal number

None.

InventoryPerson

string

Max length: 255

Exclude

boolean

Required

PalletPlace

string

Max length: 100

Remarks

None.

Example

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "InventoryBasisHeadId": "0749cdb6-dda6-4edd-888f-253fbcfa4e71",
    "StockId": "9b494c03-fdb3-4f89-a9f6-0137bc057659",
    "ArticleId": "9e2d4bce-fe4d-44c9-8c8d-869fcf14da3b",
    "ArticleNo": 5,
    "Description": "sample string 6",
    "Quantity": 1.0,
    "Unit": 1,
    "Cost": 1.0,
    "Recyclefee": 7.0,
    "ReasonId": 1,
    "Inventoried": true,
    "StockBalance": 1.0,
    "SupplierArticleNo": "sample string 9",
    "ReservedQuantity": 1.0,
    "InventoryPerson": "sample string 10",
    "Exclude": true,
    "PalletPlace": "sample string 12"
  },
  {
    "Id": 1,
    "InventoryBasisHeadId": "0749cdb6-dda6-4edd-888f-253fbcfa4e71",
    "StockId": "9b494c03-fdb3-4f89-a9f6-0137bc057659",
    "ArticleId": "9e2d4bce-fe4d-44c9-8c8d-869fcf14da3b",
    "ArticleNo": 5,
    "Description": "sample string 6",
    "Quantity": 1.0,
    "Unit": 1,
    "Cost": 1.0,
    "Recyclefee": 7.0,
    "ReasonId": 1,
    "Inventoried": true,
    "StockBalance": 1.0,
    "SupplierArticleNo": "sample string 9",
    "ReservedQuantity": 1.0,
    "InventoryPerson": "sample string 10",
    "Exclude": true,
    "PalletPlace": "sample string 12"
  }
]

application/xml, text/xml

Sample:
<ArrayOfUpdateInventoryBasisLineRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Stock">
  <UpdateInventoryBasisLineRequest>
    <ArticleId>9e2d4bce-fe4d-44c9-8c8d-869fcf14da3b</ArticleId>
    <ArticleNo>5</ArticleNo>
    <Cost>1</Cost>
    <Description>sample string 6</Description>
    <Exclude>true</Exclude>
    <Inventoried>true</Inventoried>
    <InventoryBasisHeadId>0749cdb6-dda6-4edd-888f-253fbcfa4e71</InventoryBasisHeadId>
    <InventoryPerson>sample string 10</InventoryPerson>
    <PalletPlace>sample string 12</PalletPlace>
    <Quantity>1</Quantity>
    <ReasonId>1</ReasonId>
    <Recyclefee>7</Recyclefee>
    <ReservedQuantity>1</ReservedQuantity>
    <StockBalance>1</StockBalance>
    <StockId>9b494c03-fdb3-4f89-a9f6-0137bc057659</StockId>
    <SupplierArticleNo>sample string 9</SupplierArticleNo>
    <Unit>1</Unit>
    <Id>1</Id>
  </UpdateInventoryBasisLineRequest>
  <UpdateInventoryBasisLineRequest>
    <ArticleId>9e2d4bce-fe4d-44c9-8c8d-869fcf14da3b</ArticleId>
    <ArticleNo>5</ArticleNo>
    <Cost>1</Cost>
    <Description>sample string 6</Description>
    <Exclude>true</Exclude>
    <Inventoried>true</Inventoried>
    <InventoryBasisHeadId>0749cdb6-dda6-4edd-888f-253fbcfa4e71</InventoryBasisHeadId>
    <InventoryPerson>sample string 10</InventoryPerson>
    <PalletPlace>sample string 12</PalletPlace>
    <Quantity>1</Quantity>
    <ReasonId>1</ReasonId>
    <Recyclefee>7</Recyclefee>
    <ReservedQuantity>1</ReservedQuantity>
    <StockBalance>1</StockBalance>
    <StockId>9b494c03-fdb3-4f89-a9f6-0137bc057659</StockId>
    <SupplierArticleNo>sample string 9</SupplierArticleNo>
    <Unit>1</Unit>
    <Id>1</Id>
  </UpdateInventoryBasisLineRequest>
</ArrayOfUpdateInventoryBasisLineRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

A list of objects with the success status and ID of each affected line

Collection of InventoryBasisLineResponse
NameDescriptionTypeAdditional information
Id

integer

None.

Errors

Collection of InventoryBasisLineErrorMessage

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.