PUT api/stockPlace/UpdateStockPlace

Update names on stock places

Request Information

URI Parameters

None.

Body Parameters

List of StockplaceId, StockId and Name

UpdateStockPlaceRequest
NameDescriptionTypeAdditional information
StockPlaces

Collection of StockPlace

None.

Remarks

None.

Example

None.

Request Formats

application/json, text/json

Sample:
{
  "StockPlaces": [
    {
      "Id": 1,
      "StockId": "ba3a0088-c5a0-4af9-9a78-2f60ce71a799",
      "Name": "sample string 3"
    },
    {
      "Id": 1,
      "StockId": "ba3a0088-c5a0-4af9-9a78-2f60ce71a799",
      "Name": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<UpdateStockPlaceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.TyreHotel">
  <StockPlaces>
    <StockPlace>
      <Id>1</Id>
      <Name>sample string 3</Name>
      <StockId>ba3a0088-c5a0-4af9-9a78-2f60ce71a799</StockId>
    </StockPlace>
    <StockPlace>
      <Id>1</Id>
      <Name>sample string 3</Name>
      <StockId>ba3a0088-c5a0-4af9-9a78-2f60ce71a799</StockId>
    </StockPlace>
  </StockPlaces>
</UpdateStockPlaceRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Response object with error messages if any error has occured e.g. stockplace not found etc.

UpdateStockPlaceResponse
NameDescriptionTypeAdditional information
Success

boolean

None.

ErrorMessages

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": false,
  "ErrorMessages": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<UpdateStockPlaceResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.TyreHotel">
  <ErrorMessages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ErrorMessages>
</UpdateStockPlaceResponse>