Gateway GRPC

Update a route

put/v2/organisations/{organisation_id}/routes/{route_id}

Request

  • Base URL
    https://api.cautio.in (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Path parameters

organisation_idstring required
Example:019aa01c-a1a9-7fae-961b-23845147892e

Organisation ID

route_idstring required
Example:019d4ddf-3358-74c2-a694-341147d77d00

Route ID

Request body

route_namestring required

Name of the route

Example request

{
  "locations": [
    {
      "latitude": 17.385,
      "longitude": 78.4867,
      "type": 1,
      "address": "Hyderabad A"
    },
    {
      "latitude": 17.6868,
      "longitude": 83.2185,
      "type": 2,
      "address": "Vizag B"
    },
    {
      "latitude": 16.5062,
      "longitude": 80.648,
      "type": 2,
      "address": "Vijayawada C"
    },
    {
      "latitude": 15.8281,
      "longitude": 78.0373,
      "type": 1,
      "address": "Kurnool D"
    }
  ],
  "route_name": "GRPC Test Route 6",
  "movement_history_data": {
    "vehicle_id": "019aa01c-a1a9-7fae-961b-23845147892e",
    "start_time": "1",
    "end_time": "1",
    "start_index": "2",
    "end_index": "2"
  }
}

Response

Route updated successfully

Changes

No recorded changes to this operation across all 1 revision of this API.