POST api/v0/StoragePoints/AddStoragePoint
Request Information
URI Parameters
None.
Body Parameters
StoragePointContract| Name | Description | Type | Additional information |
|---|---|---|---|
| FarmId | integer |
None. |
|
| StoragePointId | integer |
None. |
|
| Description | string |
None. |
|
| Capacity | decimal number |
None. |
|
| IsDisabled | boolean |
None. |
|
| NFCCode | string |
None. |
|
| CurrentArticleCode | string |
None. |
|
| StoragePointExternalID | string |
None. |
|
| FarmExternalID | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"FarmId": 1,
"StoragePointId": 2,
"Description": "sample string 3",
"Capacity": 4.0,
"IsDisabled": true,
"NFCCode": "sample string 6",
"CurrentArticleCode": "sample string 7",
"StoragePointExternalID": "sample string 8",
"FarmExternalID": "sample string 9"
}
application/xml, text/xml
Sample:
<StoragePointContract xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.agrifoodatsolutions.com/FDService/v0/contracts/2017/01"> <Capacity>4</Capacity> <CurrentArticleCode>sample string 7</CurrentArticleCode> <Description>sample string 3</Description> <FarmExternalID>sample string 9</FarmExternalID> <FarmId>1</FarmId> <IsDisabled>true</IsDisabled> <NFCCode>sample string 6</NFCCode> <StoragePointExternalID>sample string 8</StoragePointExternalID> <StoragePointId>2</StoragePointId> </StoragePointContract>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>