Mileage - Update route
API Url
Used for updating a mileage route.
PUT
http://localhost:16010/ProMarkREST/rest/Mileage/routes
Permissions: user
Path parameters
| Field | Type | Description |
|---|---|---|
| id | String | Employee ID. |
Parameter
| Field | Type | Description |
|---|---|---|
| request | Object | Main object containing the request data. |
| data | Object | Object containg data to be uploaded. |
| routes | Object[] | Collection of routes |
| distance | Number | Distance of a route |
| from | String | Starting position of a route. |
| id | Number | An name for the route |
| name | String | An name for the route |
| to | String | Ending position of a route. |
viaoptional | String | Alternate route. |
Request example:
{"request": {"data": {"routes": [{"id": 1243345,"name": "KICKOFF","from": "Bucharest","to": "Copenhagen","distance" : 2137}]}}}
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Error 4xx
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |
Error example:
{"response": {"errorCode": 34"errorMessage": "The route does not exist"}}