# Actualizar ruta OnBus - updateRouteOnBus

##### <span class="api-method" data-method="POST">POST</span> https://api.service24gps.com/api/v1/updateRouteOnBus

Permite realizar la modificación de la información de una ruta.

<details class="mb-m" id="bkmrk-body-parametersparam"><summary class="text-muted">Ver parámetros de solicitud:</summary>

<div><table class="table" style="width: 809px; height: 946px;"><tbody><tr style="height: 41px;"><th style="width: 123px; height: 41px;">Parámetros</th><th style="width: 378px; height: 41px;">Descripción</th><th style="width: 308px; height: 41px;">Ejemplo</th></tr><tr style="height: 41px;"><td style="width: 123px; height: 41px;">apikey</td><td style="width: 378px; height: 41px;">Llave de autorización para uso de los Servicios Web.</td><td style="width: 308px; height: 41px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 123px; height: 41px;">token</td><td style="width: 378px; height: 41px;">Token devuelto por el método getToken.</td><td style="width: 308px; height: 41px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr style="height: 69px;"><td style="width: 123px; height: 69px;">id</td><td style="width: 378px; height: 69px;">Identificador único de la ruta en el sistema.

</td><td style="width: 308px; height: 69px;"><span role="presentation" style="padding-right: 0.1px;"><span style="color: #3366ff;">Update Test Nombre 3</span></span></td></tr><tr><td style="width: 123px;">nombre

</td><td style="width: 378px;">Nombre con el que se identificará la ruta en el sistema.

</td><td style="width: 308px;"><span style="color: #3366ff;">New Driver 3</span>

</td></tr><tr><td style="width: 123px;">definicion

</td><td style="width: 378px;">Definición de los puntos.

</td><td style="width: 308px;"><span style="color: #3366ff;">{</span>  
<span style="color: #3366ff;"> "distancia": 80,</span>

<span style="color: #3366ff;"> "lugares": \[</span>

<span style="color: #3366ff;"> {</span>  
<span style="color: #3366ff;"> "id": "2300129",</span>  
<span style="color: #3366ff;"> "tipo": 1,</span>  
<span style="color: #3366ff;"> "orden": "6",</span>  
<span style="color: #3366ff;"> "nombre": "numero 6",</span>  
<span style="color: #3366ff;"> "dist\_pa": 227,</span>  
<span style="color: #3366ff;"> "latLng": "19.030686,-98.211428",</span>  
<span style="color: #3366ff;"> "fEstimada": "",</span>  
<span style="color: #3366ff;"> "tolerancia": "0",</span>  
<span style="color: #3366ff;"> "timeBetween": 5,</span>  
<span style="color: #3366ff;"> "distLleg": 15,</span>  
<span style="color: #3366ff;"> "orientacion": "",</span>  
<span style="color: #3366ff;"> "completado": "0",</span>  
<span style="color: #3366ff;"> "ViajeHora": "0",</span>  
<span style="color: #3366ff;"> "ViajeMin": "5",</span>  
<span style="color: #3366ff;"> "TiempoParado": "0",</span>  
<span style="color: #3366ff;"> "RadioPunto": "15",</span>  
<span style="color: #3366ff;"> "HoraConfigHorario": "Invalid date"</span>  
<span style="color: #3366ff;"> }</span>  
<span style="color: #3366ff;"> \],</span>  
<span style="color: #3366ff;"> "descripcion": "Ruta test",</span>  
<span style="color: #3366ff;"> "tiempoEstimado": "31-01-2018",</span>  
<span style="color: #3366ff;"> "id": "2300129",</span>  
<span style="color: #3366ff;"> "nombre": "Ruta de Prueba."</span>

<span style="color: #3366ff;">}</span>

</td></tr></tbody></table>

</div></details>##### Solicitud de ejemplo:

```shell
curl --location --request POST 'https://api.service24gps.com/api/v1/updateRouteOnBus' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="' \
--form 'nombre="Test RouteOnBus"' \
--form 'definicion="{\"distancia\":80,\"lugares\":[{\"id\":\"2300129\",\"tipo\": 1,\"orden\":\"6\",\"nombre\": \"numero 6\",\"dist_pa\": 227,\"latLng\"\"19.030686,-98.211428\",\"fEstimada\": \"\",\"tolerancia\": \"0\",\"timeBetween\": 5,\"distLleg\": 15,\"orientacion\": \"\",\"completado\": \"0\",\"ViajeHora\": \"0\",\"ViajeMin\": \"5\",\"TiempoParado\": \"0\",\"RadioPunto\": \"15\",\"HoraConfigHorario\": \"Invalid date\"}],\"descripcion\": \"Ruta test\",\"tiempoEstimado\": \"31-01-2018\",\"id\": \"1602\",\"nombre\": \"Ruta de Prueba.\"}"'
```

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": {
        "id": "2300129"
    }
}
```