PUT api/Materials/Stores
Create a new Store or update an existing one
Request Information
URI Parameters
None.
Body Parameters
StorePutName | Description | Type | Additional information |
---|---|---|---|
Code |
The store code. |
string |
Required Max length: 4 |
Description |
The store description. |
string |
Required Max length: 30 |
Currency |
The store currency code (ignored on update). |
string |
None. |
Request Formats
Sample:
{ "Code": "A01", "Description": "Main store" }
Sample:
<StorePut xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Materiais"> <Code>A01</Code> <Currency i:nil="true" /> <Description>Main store</Description> </StorePut>
Sample:
Sample not available.
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Code" A01 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Description" Main store --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--