PUT api/Purchases/{id}

Update a purchase order

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The Purchase ID

integer

Required

Body Parameters

PurchaseEdit
NameDescriptionTypeAdditional information
UserCode1

The User Code 1

string

Max length: 50

UserCode2

The User Code 2

string

Max length: 50

Description

Description

string

Max length: 255

SpecialConditions

Special Conditions

string

Max length: 30

Reference

Reference

string

Max length: 30

Notes

Notes

string

None.

Request Formats

Sample:
{
  "UserCode1": "sample string 1",
  "UserCode2": "sample string 2",
  "Description": "sample string 3",
  "SpecialConditions": "sample string 4",
  "Reference": "sample string 5",
  "Notes": "sample string 6"
}
Sample:
<PurchaseEdit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Encomendas">
  <Description>sample string 3</Description>
  <Notes>sample string 6</Notes>
  <Reference>sample string 5</Reference>
  <SpecialConditions>sample string 4</SpecialConditions>
  <UserCode1>sample string 1</UserCode1>
  <UserCode2>sample string 2</UserCode2>
</PurchaseEdit>
Sample:

Sample not available.

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

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="UserCode2"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Description"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="SpecialConditions"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Reference"

sample string 5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Notes"

sample string 6
--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.