POST Station/Favorite

Request Information

URI Parameters

None.

Body Parameters

FavoriteStation
NameDescriptionTypeAdditional information
user

string

None.

station

integer

None.

favorite

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "user": "sample string 1",
  "station": 2,
  "favorite": true
}

application/xml, text/xml

Sample:
<FavoriteStation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ChargeCloudAPI.Models">
  <favorite>true</favorite>
  <station>2</station>
  <user>sample string 1</user>
</FavoriteStation>

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

Response Information

Resource Description

Response
NameDescriptionTypeAdditional information
Success

boolean

None.

ResponseCode

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "ResponseCode": "sample string 2"
}

application/xml, text/xml

Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ChargeCloudAPI.Models">
  <ResponseCode>sample string 2</ResponseCode>
  <Success>true</Success>
</Response>