PUT api/Vendors/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

Vendor
NameDescriptionTypeAdditional information
VendorId

integer

None.

UtilityId

integer

None.

VendorNum

string

Max length: 50

VendorName

string

Max length: 100

DateCreated

date

None.

DateUpdated

date

None.

CreatedBy

integer

None.

UpdatedBy

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "VendorId": 1,
  "UtilityId": 2,
  "VendorNum": "sample string 3",
  "VendorName": "sample string 4",
  "DateCreated": "2020-02-15T19:54:49.5208467+00:00",
  "DateUpdated": "2020-02-15T19:54:49.5208467+00:00",
  "CreatedBy": 7,
  "UpdatedBy": 8
}

application/xml, text/xml

Sample:
<Vendor xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APL.Models">
  <CreatedBy>7</CreatedBy>
  <DateCreated>2020-02-15T19:54:49.5208467+00:00</DateCreated>
  <DateUpdated>2020-02-15T19:54:49.5208467+00:00</DateUpdated>
  <UpdatedBy>8</UpdatedBy>
  <UtilityId>2</UtilityId>
  <VendorId>1</VendorId>
  <VendorName>sample string 4</VendorName>
  <VendorNum>sample string 3</VendorNum>
</Vendor>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Vendor'.

Response Information

Resource Description

None.