POST api/stockPlace/AddNamedStockPlace
Adds stockplaces with names to a specific stock.
Request Information
URI Parameters
None.
Body Parameters
Request object for adding stockplaces with names
AddNamedStockPlaceRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| StockId | globally unique identifier |
Required |
|
| StockPlaceNames | Collection of string |
Required |
Remarks
None.
Example
None.
Request Formats
application/json, text/json
Sample:
{
"StockId": "ba7c850d-9dcc-4782-a971-98effbd3c359",
"StockPlaceNames": [
"sample string 1",
"sample string 2"
]
}
application/xml, text/xml
Sample:
<AddNamedStockPlaceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.TyreHotel">
<StockId>ba7c850d-9dcc-4782-a971-98effbd3c359</StockId>
<StockPlaceNames xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</StockPlaceNames>
</AddNamedStockPlaceRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AddStockPlaceResponse| Name | Description | Type | Additional 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>