PUT api/StoreRequests/{code}

Update a pending store request

Request Information

URI Parameters

NameDescriptionTypeAdditional information
code

The Request id

integer

Required

Body Parameters

EditStoreRequest
NameDescriptionTypeAdditional information
Title

string

Required

Max length: 255

CostAllocation

AllocationEntity

Required

Materials

Collection of RequestMaterial

Required

No duplicate values on: Code

Request Formats

Sample:
{
  "Title": "sample string 1",
  "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:
<EditStoreRequest 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>
  <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>
  <Title>sample string 1</Title>
</EditStoreRequest>
Sample:

Sample not available.

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Title"

sample string 1
--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

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.