PUT api/Items/Locations
Create a new Location
Request Information
URI Parameters
None.
Body Parameters
LocationName | Description | Type | Additional information |
---|---|---|---|
Code |
The new location code |
string |
Required Matching regular expression pattern: ^[^\.]+$ Max length: 20 |
Description |
The description of the location |
string |
Required Max length: 80 |
ParentCode |
The parent node code |
string |
Max length: 20 |
Request Formats
Sample:
{ "Code": "sample string 1", "Description": "sample string 2", "ParentCode": "sample string 3" }
Sample:
<Location xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Parque"> <Code>sample string 1</Code> <Description>sample string 2</Description> <ParentCode>sample string 3</ParentCode> </Location>
Sample:
Sample not available.
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Code" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Description" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ParentCode" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
stringResponse Formats
Sample:
"sample string 1"
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e--