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

List of stock places to update

Collection of StockPlace

None.

Remarks

None.

Example

None.

Request Formats

application/json, text/json

Sample:
{
  "StockPlaces": [
    {
      "Id": 1,
      "StockId": "b2192a65-9245-4e1b-8075-b49c6357b621",
      "Name": "sample string 3"
    },
    {
      "Id": 1,
      "StockId": "b2192a65-9245-4e1b-8075-b49c6357b621",
      "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>b2192a65-9245-4e1b-8075-b49c6357b621</StockId>
    </StockPlace>
    <StockPlace>
      <Id>1</Id>
      <Name>sample string 3</Name>
      <StockId>b2192a65-9245-4e1b-8075-b49c6357b621</StockId>
    </StockPlace>
  </StockPlaces>
</UpdateStockPlaceRequest>

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 'UpdateStockPlaceRequest'.

Response Information

Resource Description

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

UpdateStockPlaceResponse
NameDescriptionTypeAdditional information
Success

If success = false, check ErrorMessages list

boolean

None.

ErrorMessages

If the update fails, the error message can be found here.

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>