PUT api/Configuration/Suppliers/{code}/Contacts/{id}

Update an Contact

Request Information

URI Parameters

NameDescriptionTypeAdditional information
code

The Supplier code

string

Required

id

The Contact Id

integer

Required

Body Parameters

ContactEdit
NameDescriptionTypeAdditional information
Name

string

Required

Max length: 50

Function

string

Max length: 50

Phone

string

Max length: 17

Mobile

string

Max length: 17

Email

string

Max length: 100

Request Formats

Sample:
{
  "Name": "sample string 1",
  "Function": "sample string 2",
  "Phone": "sample string 3",
  "Mobile": "sample string 4",
  "Email": "sample string 5"
}
Sample:
<ContactEdit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Parametrizacao">
  <Email>sample string 5</Email>
  <Function>sample string 2</Function>
  <Mobile>sample string 4</Mobile>
  <Name>sample string 1</Name>
  <Phone>sample string 3</Phone>
</ContactEdit>
Sample:

Sample not available.

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

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

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

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

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

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