POST api/Locations
Request Information
URI Parameters
None.
Body Parameters
LocationBindingViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| LocationId | string |
None. |
|
| Width | decimal number |
None. |
|
| Length | decimal number |
None. |
|
| Height | decimal number |
None. |
|
| MaxWeight | decimal number |
None. |
|
| MinTemperature | decimal number |
None. |
|
| MinQuantity | decimal number |
None. |
|
| AllocationPriority | integer |
None. |
|
| Description | string |
None. |
|
| LocationTypeId | integer |
None. |
|
| BillingTypeId | integer |
None. |
|
| ConsigneeId | integer |
None. |
|
| WarehouseId | integer |
None. |
|
| IsActive | boolean |
None. |
|
| DirectedPutWays | Collection of DirectedPuWayViewModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"LocationId": "sample string 2",
"Width": 1.0,
"Length": 1.0,
"Height": 1.0,
"MaxWeight": 1.0,
"MinTemperature": 1.0,
"MinQuantity": 1.0,
"AllocationPriority": 1,
"Description": "sample string 3",
"LocationTypeId": 4,
"BillingTypeId": 1,
"ConsigneeId": 1,
"WarehouseId": 5,
"IsActive": true,
"DirectedPutWays": [
{
"Id": 1,
"Zone": "sample string 2",
"MaxFillPercentage": 1.0,
"MaxNumberOfMovableUnits": 1,
"StoreOnlyMovableUnits": true,
"Description": "sample string 4"
},
{
"Id": 1,
"Zone": "sample string 2",
"MaxFillPercentage": 1.0,
"MaxNumberOfMovableUnits": 1,
"StoreOnlyMovableUnits": true,
"Description": "sample string 4"
}
]
}
application/xml, text/xml
Sample:
<LocationBindingViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eMpowerCore.ViewModels.Warehouses.Locations">
<AllocationPriority>1</AllocationPriority>
<BillingTypeId>1</BillingTypeId>
<ConsigneeId>1</ConsigneeId>
<Description>sample string 3</Description>
<DirectedPutWays>
<DirectedPuWayViewModel>
<Description>sample string 4</Description>
<Id>1</Id>
<MaxFillPercentage>1</MaxFillPercentage>
<MaxNumberOfMovableUnits>1</MaxNumberOfMovableUnits>
<StoreOnlyMovableUnits>true</StoreOnlyMovableUnits>
<Zone>sample string 2</Zone>
</DirectedPuWayViewModel>
<DirectedPuWayViewModel>
<Description>sample string 4</Description>
<Id>1</Id>
<MaxFillPercentage>1</MaxFillPercentage>
<MaxNumberOfMovableUnits>1</MaxNumberOfMovableUnits>
<StoreOnlyMovableUnits>true</StoreOnlyMovableUnits>
<Zone>sample string 2</Zone>
</DirectedPuWayViewModel>
</DirectedPutWays>
<Height>1</Height>
<Id>1</Id>
<IsActive>true</IsActive>
<Length>1</Length>
<LocationId>sample string 2</LocationId>
<LocationTypeId>4</LocationTypeId>
<MaxWeight>1</MaxWeight>
<MinQuantity>1</MinQuantity>
<MinTemperature>1</MinTemperature>
<WarehouseId>5</WarehouseId>
<Width>1</Width>
</LocationBindingViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
LocationResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Code | string |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"Code": "sample string 2",
"Message": "sample string 3"
}
application/xml, text/xml
Sample:
<LocationResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eMpowerCore.ViewModels.Warehouses.Locations"> <Code>sample string 2</Code> <Id>1</Id> <Message>sample string 3</Message> </LocationResponse>