POST Package/ChangePhone

Request Information

URI Parameters

None.

Body Parameters

PackagePhoneEdit
NameDescriptionTypeAdditional information
PackageID

integer

None.

CourierID

integer

None.

Phone

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PackageID": 1,
  "CourierID": 2,
  "Phone": "sample string 3"
}

application/xml, text/xml

Sample:
<PackagePhoneEdit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RestAPI.Models">
  <CourierID>2</CourierID>
  <PackageID>1</PackageID>
  <Phone>sample string 3</Phone>
</PackagePhoneEdit>

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

Response Information

Resource Description

GeneralResponse
NameDescriptionTypeAdditional information
success

boolean

None.

message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "message": "sample string 2"
}

application/xml, text/xml

Sample:
<GeneralResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RestAPI.Models">
  <message>sample string 2</message>
  <success>true</success>
</GeneralResponse>