PUT api/Carriers/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

CarrierDTO
NameDescriptionTypeAdditional information
CarrierID

integer

None.

Name

string

None.

SCAC

string

None.

IsSmallParcel

boolean

None.

IsGround

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "CarrierID": 1,
  "Name": "sample string 2",
  "SCAC": "sample string 3",
  "IsSmallParcel": true,
  "IsGround": true
}

application/xml, text/xml

Sample:
<CarrierDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SupportAPI.Controllers">
  <CarrierID>1</CarrierID>
  <IsGround>true</IsGround>
  <IsSmallParcel>true</IsSmallParcel>
  <Name>sample string 2</Name>
  <SCAC>sample string 3</SCAC>
</CarrierDTO>

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 'CarrierDTO'.

Response Information

Resource Description

None.