PUT | /em/location | Update an existing Location. LocationOwner |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Location | body | Location | Yes | The location |
Token | query | Yes | The security token | |
Source | query | string | No | Name of the event provider: Examples are ptvemapp, ptvemportal, jmeter, any customer specific app |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests. The placeholders shown need to be replaced with actual values.
PUT /em/location HTTP/1.1
Host: eta.cloud.ptvgroup.com
Content-Type: application/json
Content-Length: length
{
"location": {
"locationId": "String",
"revision": 0,
"arrivedRange": 0,
"searchable": false,
"name": "String",
"coordinate": {
"locationX": 0,
"locationY": 0
},
"address": {
"label": "String",
"country": "String",
"state": "String",
"province": "String",
"postCode": "String",
"city": "String",
"city2": "String",
"street": "String",
"houseNumber": "String"
},
"customDataFieldsForStop": [
{
"name": "String",
"format": "String"
}
],
"customData": {}
},
"token": "String",
"source": "String"
}
The following are sample HTTP responses. The placeholders shown need to be replaced with actual values.
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length { "responseStatus": { "errorCode": "String", "message": "String", "stackTrace": "String", "errors": [ { "errorCode": "String", "fieldName": "String", "message": "String", "meta": { "String": "String" } } ], "meta": { "String": "String" } }, "location": { "locationId": "String", "revision": 0, "arrivedRange": 0, "searchable": false, "name": "String", "coordinate": { "locationX": 0, "locationY": 0 }, "address": { "label": "String", "country": "String", "state": "String", "province": "String", "postCode": "String", "city": "String", "city2": "String", "street": "String", "houseNumber": "String" }, "customDataFieldsForStop": [ { "name": "String", "format": "String" } ], "customData": {} } }