PUT api/Suppliers

Updates an existing Suppliers entity

Request Information

URI Parameters

None.

Body Parameters

SuppliersData
NameDescriptionTypeAdditional information
SupplierID

integer

None.

CompanyName

string

None.

ContactName

string

None.

ContactTitle

string

None.

Address

string

None.

City

string

None.

Region

string

None.

PostalCode

string

None.

Country

string

None.

Phone

string

None.

Fax

string

None.

HomePage

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SupplierID": 1,
  "CompanyName": "sample string 2",
  "ContactName": "sample string 3",
  "ContactTitle": "sample string 4",
  "Address": "sample string 5",
  "City": "sample string 6",
  "Region": "sample string 7",
  "PostalCode": "sample string 8",
  "Country": "sample string 9",
  "Phone": "sample string 10",
  "Fax": "sample string 11",
  "HomePage": "sample string 12"
}

text/xml

Sample:
<SuppliersData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NorthwindAPI.Models">
  <Address>sample string 5</Address>
  <City>sample string 6</City>
  <CompanyName>sample string 2</CompanyName>
  <ContactName>sample string 3</ContactName>
  <ContactTitle>sample string 4</ContactTitle>
  <Country>sample string 9</Country>
  <Fax>sample string 11</Fax>
  <HomePage>sample string 12</HomePage>
  <Phone>sample string 10</Phone>
  <PostalCode>sample string 8</PostalCode>
  <Region>sample string 7</Region>
  <SupplierID>1</SupplierID>
</SuppliersData>

application/x-www-form-urlencoded

Sample:

Sample not available.

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.