POST api/v1/destination
Request Information
URI Parameters
None.
Body Parameters
DestinationName | Description | Type | Additional information |
---|---|---|---|
tconnectId | string |
Required Max length: 50 |
|
route | boolean |
None. |
|
locations | Collection of Location |
Required |
Request Formats
application/json, text/json
Sample:
{ "tconnectId": "sample string 1", "route": true, "locations": [ { "sequence": 1, "nameEn": "sample string 1", "nameTh": "sample string 2", "addressEn": "sample string 3", "addressTh": "sample string 4", "lat": 1.1, "lon": 1.1 }, { "sequence": 1, "nameEn": "sample string 1", "nameTh": "sample string 2", "addressEn": "sample string 3", "addressTh": "sample string 4", "lat": 1.1, "lon": 1.1 } ] }
application/xml, text/xml
Sample:
<Destination xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LDCM.MyServices.Models"> <Locations> <Location> <AddressEn>sample string 3</AddressEn> <AddressTh>sample string 4</AddressTh> <Lat>1.1</Lat> <Lon>1.1</Lon> <NameEn>sample string 1</NameEn> <NameTh>sample string 2</NameTh> <Sequence>1</Sequence> </Location> <Location> <AddressEn>sample string 3</AddressEn> <AddressTh>sample string 4</AddressTh> <Lat>1.1</Lat> <Lon>1.1</Lon> <NameEn>sample string 1</NameEn> <NameTh>sample string 2</NameTh> <Sequence>1</Sequence> </Location> </Locations> <Route>true</Route> <TConnectId>sample string 1</TConnectId> </Destination>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.