POST api/StockPlace

Adds stockplaces to a specific stock.

Request Information

URI Parameters

None.

Body Parameters

Request object for adding stockplaces

AddStockPlaceRequest
NameDescriptionTypeAdditional information
StockId

globally unique identifier

Required

StockPlaceCount

integer

Required

Range: inclusive between 1 and 10000

Remarks

None.

Example

None.

Request Formats

application/json, text/json

Sample:
{
  "StockId": "b6d3f7f4-3ac9-420a-b313-8f737f36ab6b",
  "StockPlaceCount": 2
}

application/xml, text/xml

Sample:
<AddStockPlaceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.TyreHotel">
  <StockId>b6d3f7f4-3ac9-420a-b313-8f737f36ab6b</StockId>
  <StockPlaceCount>2</StockPlaceCount>
</AddStockPlaceRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AddStockPlaceResponse
NameDescriptionTypeAdditional information
Success

boolean

None.

Errors

Collection of AddStockPlaceErrorResponse

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Errors": [
    {
      "ErrorMessage": "sample string 1",
      "ErrorCode": 0
    },
    {
      "ErrorMessage": "sample string 1",
      "ErrorCode": 0
    }
  ]
}

application/xml, text/xml

Sample:
<AddStockPlaceResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.TyreHotel">
  <Errors>
    <AddStockPlaceErrorResponse>
      <ErrorCode>WrongStockType</ErrorCode>
      <ErrorMessage>sample string 1</ErrorMessage>
    </AddStockPlaceErrorResponse>
    <AddStockPlaceErrorResponse>
      <ErrorCode>WrongStockType</ErrorCode>
      <ErrorMessage>sample string 1</ErrorMessage>
    </AddStockPlaceErrorResponse>
  </Errors>
  <Success>true</Success>
</AddStockPlaceResponse>