# editOptionsVehicle(JSON dataVehicle)

Al invocar este método, se encargada de editar las opciones de un activo para uso de onDelivery.

<details class="mb-m" id="bkmrk-body-parametersparam"><summary class="text-muted">Esta función recibe como parámetro un objeto JSON con los siguientes atributos:</summary>

<div></div><div><table class="table" style="height: 601px; width: 619px;" width="811"><tbody><tr style="height: 41px;"><th style="width: 320px; height: 41px;">Atributos</th><th style="width: 301px; height: 41px;">Definición </th></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**cantidad**</td><td style="width: 301px; height: 41px;"> Cantidad de paquetes admitidos en el activo

</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**peso\_maximo**</td><td style="width: 301px; height: 41px;">Peso máximo que aguanta el activo</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**unidad\_peso**</td><td style="width: 301px; height: 41px;">Unidad de medida de peso</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**volumen\_maximo**</td><td style="width: 301px; height: 41px;">Volumen máximo que aguanta el activo</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**unidad\_volumen**</td><td style="width: 301px; height: 41px;">Unidad de medida del volumen</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**inicio\_labores**</td><td style="width: 301px; height: 41px;">Hora de inicio de recorrido del activo</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**fin\_labores**</td><td style="width: 301px; height: 41px;">Hora de fin de recorrido del activo</td></tr><tr style="height: 58px;"><td style="width: 320px; height: 58px;">**tipo\_lugar\_salida**</td><td style="width: 301px; height: 58px;"> ID del tipo de lugar de salida con el que se identifica en el sistema</td></tr><tr style="height: 58px;"><td style="width: 320px; height: 58px;">**lugar\_salida**</td><td style="width: 301px; height: 58px;">ID de la ubicación del lugar de salida registrado en onDelivery</td></tr><tr style="height: 58px;"><td style="width: 320px; height: 58px;">**idvehiculo**</td><td style="width: 301px; height: 58px;">ID del activo seleccionado con el que se identifica en el sistema</td></tr><tr style="height: 58px;"><td style="width: 320px; height: 58px;">**datos\_tipo\_activo**</td><td style="width: 301px; height: 58px;">JSON de Datos extras asociados al tipo de activo</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**idopcion  
</td><td style="width: 301px; height: 41px;">ID de las opciones a editar</td></tr></tbody></table>

</div></details><div id="bkmrk-"></div><div id="bkmrk--0"></div><div id="bkmrk-ejemplo-de-json%3A"><span style="color: #bbbbbb; font-size: 1.4em; font-weight: 400;">Ejemplo de JSON:</span></div>```JavaScript
let dataVehicle = {
'cantidad':'1',
'peso_maximo':'100',
'unidad_peso':'166',
'volumen_maximo':'1000',
'unidad_volumen':'156',
'inicio_labores':'08:00',
'fin_labores':'17:00',
'tipo_lugar_salida':'1',
'lugar_salida':'498739',
'idvehiculo':'122903',
'datos_tipo_activo':{},
'idopcion':'63'
}
```

<div id="bkmrk-ejemplo-de-solicitud"><span style="color: #bbbbbb; font-size: 1.4em; font-weight: 400;">Ejemplo de solicitud en JS:</span></div>```JavaScript
try {
      const options  = await _gpsApiv2.editOptionsVehicle(dataVehicle); 
 	} catch (error) {
	  console.error(error);
	}
```

##### Los atributos de respuesta:

- **data:** Información devuelta dela solicitud.
- **status:** Código Estatus que devuelve la solicitud / 200-&gt;'OK' - OtherCode-&gt;'Error'

##### Respuesta de ejemplo:

```JSON
{
	 data:'',
	 status:'200'
}
```