POST api/StoreRequests
Add a new store request
Request Information
URI Parameters
None.
Body Parameters
NewStoreRequestName | Description | Type | Additional information |
---|---|---|---|
Title |
|
string |
Required Max length: 255 |
Date |
|
date |
None. |
Store |
|
string |
Required |
CostAllocation |
|
AllocationEntity |
Required |
Materials |
|
Collection of RequestMaterial |
Required No duplicate values on: Code |
Request Formats
Sample:
{ "Title": "sample string 1", "Date": "2024-11-14T16:24:26.09478+00:00", "Store": "sample string 2", "CostAllocation": { "Type": "WorkOrder", "Code": "sample string 1" }, "Materials": [ { "Code": "sample string 1", "Urgency": "Emergency", "Quantity": 1.1 }, { "Code": "sample string 1", "Urgency": "Emergency", "Quantity": 1.1 } ] }
Sample:
<NewStoreRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Warehouse"> <CostAllocation xmlns:d2p1="http://schemas.datacontract.org/2004/07/WebAPI.Models"> <d2p1:Code>sample string 1</d2p1:Code> <d2p1:Type>WorkOrder</d2p1:Type> </CostAllocation> <Date>2024-11-14T16:24:26.09478+00:00</Date> <Materials> <RequestMaterial> <Code>sample string 1</Code> <Quantity>1.1</Quantity> <Urgency>Emergency</Urgency> </RequestMaterial> <RequestMaterial> <Code>sample string 1</Code> <Quantity>1.1</Quantity> <Urgency>Emergency</Urgency> </RequestMaterial> </Materials> <Store>sample string 2</Store> <Title>sample string 1</Title> </NewStoreRequest>
Sample:
Sample not available.
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Title" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Date" 2024-11-14T16:24:26.0947800+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Store" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="CostAllocation.Type" WorkOrder --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="CostAllocation.Code" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Materials[0].Code" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Materials[0].Urgency" Emergency --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Materials[0].Quantity" 1.1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Materials[1].Code" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Materials[1].Urgency" Emergency --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Materials[1].Quantity" 1.1 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
Returns the Store Request Code; Status code: 201 (Created)
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version |
|
Version |
None. |
Content |
|
HttpContent |
None. |
StatusCode |
|
HttpStatusCode |
None. |
ReasonPhrase |
|
string |
None. |
Headers |
|
Collection of Object |
None. |
RequestMessage |
|
HttpRequestMessage |
None. |
IsSuccessStatusCode |
|
boolean |
None. |