# Gestión de WebServices

Administrar WebServices que se crean por el distribuidor.

# Crear WebService

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

Crea un WebService a nivel distribuidor.

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

<div><table class="table" style="height: 405px;"><tbody><tr style="height: 57px;"><td style="width: 188px; height: 57px;">apikey</td><td style="width: 320px; height: 57px;">**(Requerido)** Llave de autorización para uso de los Servicios Web.</td><td style="width: 301px; height: 57px;"><span data-darkreader-inline-color="" role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">token</td><td style="width: 320px; height: 41px;">**(Requerido)** Token devuelto por el método getToken.</td><td style="width: 301px; height: 41px;"><span data-darkreader-inline-color="" style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">nombre</td><td style="width: 320px; height: 41px;">**(Requerido)** Nombre del repetidor.</td><td style="width: 301px; height: 41px;"><span data-darkreader-inline-color="" style="color: #3366ff;">Mi repetidor de datos</span></td></tr><tr style="height: 58px;"><td style="width: 188px; height: 58px;">tipo\_transmision</td><td style="width: 320px; height: 58px;">**(Requerido)** Tipo de transmisión. Valores aceptados: TCP, UDP, SOAP, RESTful.</td><td style="width: 301px; height: 58px;"><span data-darkreader-inline-color="" style="color: #3366ff;">TCP</span></td></tr><tr style="height: 75px;"><td style="width: 188px; height: 75px;">tipo\_envio</td><td style="width: 320px; height: 75px;">**(Opcional)** Tipo del envío, valores aceptados: JSON, XML, string, otro. Si no se proporciona este campo, su valor por defecto será JSON.</td><td style="width: 301px; height: 75px;"><span data-darkreader-inline-color="" style="color: #3366ff;">json</span></td></tr><tr><td style="width: 188px;">host</td><td style="width: 320px;">**(Requerido)** Dirección Host por establecer al WebService, este campo es obligatorio **sólo si** el tipo de transmisión seleccionado es SOAP o RESTful. Representa el valor del host necesario para realizar la comunicación de envío.</td><td style="width: 301px;"><span data-darkreader-inline-color="" style="color: #3366ff;">https://192.168.1.100/my-endpoint</span></td></tr><tr><td style="width: 188px;">ip</td><td style="width: 320px;">**(Requerido)** Dirección IP por establecer al WebService, este campo es obligatorio **sólo si** el tipo de transmisión seleccionado es TCP o UDP. Representa el valor de la IP necesaria para realizar la comunicación de envío.</td><td style="width: 301px;"><span data-darkreader-inline-color="" style="color: #3366ff;">192.168.1.100</span></td></tr><tr><td style="width: 188px;">port</td><td style="width: 320px;">**(Requerido)** Puerto por establecer al WebService, este campo es obligatorio **sólo si** el tipo de transmisión seleccionado es TCP o UDP. Representa el valor del puerto necesario para realizar la comunicación de envío.</td><td style="width: 301px;"><span data-darkreader-inline-color="" style="color: #3366ff;">80</span></td></tr></tbody></table>

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

```shell
curl -X 'POST' \
  'https://api.service24gps.com/api/v1/createWebservice' \
  -H 'accept: application/json' \
  -H 'Content-Type: multipart/form-data' \
  -F 'apikey=25sdsd234234aa93sdsdsd37c70118e72' \
  -F 'token=wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==' \
  -F 'nombre=Mi repetidor de datos' \
  -F 'tipo_transmision=RESTful' \
  -F 'host=https://192.168.1.100/my-endpoint' \
  -F 'tipo_envio=json'
```

##### Respuesta de ejemplo:

```JSON
{
   "status":200,
   "data":{
      "idws":151,
      "webservice":"Mi repetidor de datos",
      "tipo_transmision":"RESTful",
      "tipo_envio":"json",
      "host":"https://192.168.1.100/my-endpoint"
   }
}
```

<details class="mb-m" id="bkmrk-ver-par%C3%A1metros%3A-par%C3%A1" open="open"><summary class="text-muted">Ver campos de respuesta:</summary>

<div><table class="table" id="bkmrk-campo-descripci%C3%B3n-fo" style="width: 809px; height: 574px;"><tbody><tr style="height: 47px;"><th style="width: 174px; height: 47px;">Campo</th><th style="width: 392px; height: 47px;">Descripción

</th><th style="width: 243px; height: 47px;">Formato</th></tr><tr style="height: 41px;"><td style="width: 174px; height: 41px;">idws</td><td style="width: 392px; height: 41px;">Identificador único del repetidor del WebService.

</td><td style="width: 243px; height: 41px;">Entero</td></tr><tr style="height: 69px;"><td style="width: 174px; height: 69px;">webservice</td><td style="width: 392px; height: 69px;">Nombre del repetidor del WebService, no se admiten duplicados.

</td><td style="width: 243px; height: 69px;">Cadena de Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">tipo\_transmision</td><td style="width: 392px; height: 47px;">Tipo de transmisión establecido al WebService

</td><td style="width: 243px; height: 47px;">Cadena de Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">tipo\_envio</td><td style="width: 392px; height: 47px;">Tipo de envío establecido al WebService

</td><td style="width: 243px; height: 47px;">Cadena de Texto</td></tr><tr><td style="width: 174px;">host</td><td style="width: 392px;">Dirección Host establecida al WebService.

</td><td style="width: 243px;">Cadena de Texto</td></tr><tr style="height: 69px;"><td style="width: 174px; height: 69px;">ip</td><td style="width: 392px; height: 69px;">Dirección IP establecida al WebService.

</td><td style="width: 243px; height: 69px;">Cadena de Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">port</td><td style="width: 392px; height: 47px;">Puerto establecido al WebService.

</td><td style="width: 243px; height: 47px;">Entero</td></tr></tbody></table>

</div>#####  

##### En la plataforma Partners se puede apreciar la creación del nuevo WebService:

[![image-1726510453429.png](https://docs.redgps.com/uploads/images/gallery/2024-09/scaled-1680-/image-1726510453429.png)](https://docs.redgps.com/uploads/images/gallery/2024-09/image-1726510453429.png)

</details>

# Actualizar WebService

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

Actualizar un WebService.

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

<div><table class="table" style="height: 405px;"><tbody><tr style="height: 57px;"><td style="width: 188px; height: 57px;">apikey</td><td style="width: 320px; height: 57px;">**(Requerido)** Llave de autorización para uso de los Servicios Web.</td><td style="width: 301px; height: 57px;"><span data-darkreader-inline-color="" role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">token</td><td style="width: 320px; height: 41px;">**(Requerido)** Token devuelto por el método getToken.</td><td style="width: 301px; height: 41px;"><span data-darkreader-inline-color="" style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr><td style="width: 188px;">idws</td><td style="width: 320px;">**(Requerido)** Identificador único del WebService a actualizar.</td><td style="width: 301px;"><span data-darkreader-inline-color="" style="color: #3366ff;">151</span>

</td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">nombre</td><td style="width: 320px; height: 41px;">**(Opcional)** Nombre del WebService a actualizar.</td><td style="width: 301px; height: 41px;"><span data-darkreader-inline-color="" style="color: #3366ff;">Mi repetidor de datos</span></td></tr><tr style="height: 58px;"><td style="width: 188px; height: 58px;">tipo\_transmision</td><td style="width: 320px; height: 58px;">**(Opcional)** Tipo de transmisión. Valores aceptados: TCP, UDP, SOAP, RESTful. En el caso de una actualización si este campo tiene un valor anterior, es posible omitirlo ya que continuará almacenado con el valor previo.</td><td style="width: 301px; height: 58px;"><span data-darkreader-inline-color="" style="color: #3366ff;">TCP</span></td></tr><tr style="height: 75px;"><td style="width: 188px; height: 75px;">tipo\_envio</td><td style="width: 320px; height: 75px;">**(Opcional)** Tipo del envío, valores aceptados: JSON, XML, string, otro. Si no se proporciona este campo su valor por defecto será JSON. En el caso de una actualización si este campo tiene un valor anterior, es posible omitirlo ya que continuará almacenado con el valor previo.</td><td style="width: 301px; height: 75px;"><span data-darkreader-inline-color="" style="color: #3366ff;">json</span></td></tr><tr><td style="width: 188px;">host</td><td style="width: 320px;">**(Opcional)** Dirección Host por establecer al WebService, este campo es obligatorio **sólo si** el tipo de transmisión es SOAP o RESTful. Representa el valor del host necesario para realizar la comunicación de envío. En el caso de una actualización, si el tipo de envío es compatible y este campo tiene un valor anterior, es posible omitirlo ya que continuará almacenado con el valor previo.</td><td style="width: 301px;"><span data-darkreader-inline-color="" style="color: #3366ff;">https://192.168.1.100/my-endpoint</span></td></tr><tr><td style="width: 188px;">ip</td><td style="width: 320px;">**(Opcional)** Dirección IP por establecer al WebService, este campo es obligatorio **sólo si** el tipo de transmisión seleccionado es TCP o UDP. Representa el valor de la IP necesaria para realizar la comunicación de envío. En el caso de una actualización, si el tipo de envío es compatible y este campo tiene un valor anterior, es posible omitirlo ya que continuará almacenado con el valor previo.</td><td style="width: 301px;"><span data-darkreader-inline-color="" style="color: #3366ff;">192.168.1.100</span></td></tr><tr><td style="width: 188px;">port</td><td style="width: 320px;">**(Opcional)** Puerto por establecer al WebService, este campo es obligatorio **sólo si** el tipo de transmisión seleccionado es TCP o UDP. Representa el valor del puerto necesario para realizar la comunicación de envío. En el caso de una actualización, si el tipo de envío es compatible y este campo tiene un valor anterior, es posible omitirlo ya que continuará almacenado con el valor previo.</td><td style="width: 301px;"><span data-darkreader-inline-color="" style="color: #3366ff;">80</span></td></tr></tbody></table>

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

```shell
curl -X 'POST' \
  'https://api.service24gps.com/api/v1/updateWebservice' \
  -H 'accept: application/json' \
  -H 'Content-Type: multipart/form-data' \
  -F 'apikey=25sdsd234234aa93sdsdsd37c70118e72' \
  -F 'token=wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==' \
  -F 'nombre=Mi repetidor de datos actualizado' \
  -F 'idws=151' \
  -F 'tipo_transmision=SOAP' \
  -F 'tipo_envio=xml' \
  -F 'host=https://192.168.1.100/my-endpoint'
```

##### Respuesta de ejemplo:

```JSON
{
  "status": 200,
  "data": {
    "idws": 151,
    "webservice": "Mi repetidor de datos actualizado",
    "tipo_transmision": "SOAP",
    "tipo_envio": "xml",
    "host": "http://192.168.1.100/actual_endpoint"
  }
}
```

<details class="mb-m" id="bkmrk-ver-par%C3%A1metros%3A-par%C3%A1" open="open"><summary class="text-muted">Ver campos de respuesta:</summary>

<div><table class="table" id="bkmrk-campo-descripci%C3%B3n-fo" style="width: 809px; height: 558px;"><tbody><tr style="height: 47px;"><th style="width: 174px; height: 47px;">Campo</th><th style="width: 392px; height: 47px;">Descripción

</th><th style="width: 243px; height: 47px;">Formato</th></tr><tr style="height: 41px;"><td style="width: 174px; height: 41px;">idws</td><td style="width: 392px;" width="351">Identificador único del repetidor del WebService.

</td><td style="width: 243px; height: 41px;">Entero</td></tr><tr><td style="width: 174px;">webservice</td><td style="width: 392px;">Nombre del repetidor del WebService, no se admiten duplicados.

</td><td style="width: 243px;">Cadena de Texto</td></tr><tr><td style="width: 174px;">tipo\_transmision</td><td style="width: 392px;">Tipo de transmisión establecido al WebService

</td><td style="width: 243px;">Cadena de Texto</td></tr><tr><td style="width: 174px;">tipo\_envio</td><td style="width: 392px;">Tipo de envío establecido al WebService

</td><td style="width: 243px;">Cadena de Texto</td></tr><tr><td style="width: 174px;">host</td><td style="width: 392px;">Dirección Host establecida al WebService.

</td><td style="width: 243px;">Cadena de Texto</td></tr><tr><td style="width: 174px;">ip</td><td style="width: 392px;">Dirección IP establecida al WebService.

</td><td style="width: 243px;">Cadena de Texto</td></tr><tr><td style="width: 174px;">port</td><td style="width: 392px;">Puerto establecido al WebService.

</td><td style="width: 243px;">Entero</td></tr></tbody></table>

</div>#####  

</details>

# Eliminar WebService

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

Eliminar un WebService.

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

<div><table class="table" style="height: 405px;"><tbody><tr style="height: 57px;"><td style="width: 188px; height: 57px;">apikey</td><td style="width: 320px; height: 57px;">**(Requerido)** Llave de autorización para uso de los Servicios Web.</td><td style="width: 301px; height: 57px;"><span data-darkreader-inline-color="" role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">token</td><td style="width: 320px; height: 41px;">**(Requerido)** Token devuelto por el método getToken.</td><td style="width: 301px; height: 41px;"><span data-darkreader-inline-color="" style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr><td style="width: 188px;">idws</td><td style="width: 320px;">**(Requerido)** Identificador único del WebService a eliminar.</td><td style="width: 301px;"><span data-darkreader-inline-color="" style="color: #3366ff;">151</span>

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

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

```shell
curl -X 'POST' \
  'https://api.service24gps.com/api/v1/deleteWebservice' \
  -H 'accept: application/json' \
  -H 'Content-Type: multipart/form-data' \
  -F 'apikey=25sdsd234234aa93sdsdsd37c70118e72' \
  -F 'token=wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==' \
  -F 'idws=151';
```

##### Respuesta de ejemplo:

```JSON
{
  "status": 200,
  "data": {
    "idws": 151,
    "message": "WebService Deleted"
  }
}
```

<details class="mb-m" id="bkmrk-ver-par%C3%A1metros%3A-par%C3%A1" open="open"><summary class="text-muted">Ver campos de respuesta:</summary>

<div><table class="table" id="bkmrk-campo-descripci%C3%B3n-fo" style="width: 809px; height: 558px;"><tbody><tr style="height: 47px;"><th style="width: 174px; height: 47px;">Campo</th><th style="width: 392px; height: 47px;">Descripción

</th><th style="width: 243px; height: 47px;">Formato</th></tr><tr style="height: 41px;"><td style="width: 174px; height: 41px;">idws</td><td style="width: 392px;" width="351">Identificador único del repetidor del WebService.

</td><td style="width: 243px; height: 41px;">Entero</td></tr><tr><td style="width: 174px;">message</td><td style="width: 392px;">Mensaje de estado de la operación.

</td><td style="width: 243px;">Cadena de Texto</td></tr></tbody></table>

</div>#####  

</details>

# Información de un WebService

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

Obtener información detallada de un WebService.

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

<div><table class="table" style="height: 405px;"><tbody><tr style="height: 57px;"><td style="width: 188px; height: 57px;">apikey</td><td style="width: 320px; height: 57px;">**(Requerido)** Llave de autorización para uso de los Servicios Web.</td><td style="width: 301px; height: 57px;"><span data-darkreader-inline-color="" role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">token</td><td style="width: 320px; height: 41px;">**(Requerido)** Token devuelto por el método getToken.</td><td style="width: 301px; height: 41px;"><span data-darkreader-inline-color="" style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr><td style="width: 188px;">idws</td><td style="width: 320px;">**(Requerido)** Identificador único del WebService a actualizar</td><td style="width: 301px;"><span data-darkreader-inline-color="" style="color: #3366ff;">151</span>

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

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

```shell
curl -X 'POST' \
  'https://api.service24gps.com/api/v1/getWebserviceDetails' \
  -H 'accept: application/json' \
  -H 'Content-Type: multipart/form-data' \
  -F 'apikey=25sdsd234234aa93sdsdsd37c70118e72' \
  -F 'token=wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==' \
  -F 'idws=151'
```

##### Respuesta de ejemplo:

```JSON
{
  "status": 200,
  "data": {
    "idws": 151,
    "webservice": "Mi repetidor de datos actualizado",
    "tipo_transmision": "SOAP",
    "tipo_envio": "xml",
    "host":"https://192.168.1.100/my-endpoint"
  }
}
```

<details class="mb-m" id="bkmrk-ver-par%C3%A1metros%3A-par%C3%A1" open="open"><summary class="text-muted">Ver campos de respuesta:</summary>

<div><table class="table" id="bkmrk-campo-descripci%C3%B3n-fo" style="width: 809px; height: 558px;"><tbody><tr style="height: 47px;"><th style="width: 174px; height: 47px;">Campo</th><th style="width: 392px; height: 47px;">Descripción

</th><th style="width: 243px; height: 47px;">Formato</th></tr><tr style="height: 41px;"><td style="width: 174px; height: 41px;">idws</td><td style="width: 392px;" width="351">Identificador único del repetidor del WebService.

</td><td style="width: 243px; height: 41px;">Entero</td></tr><tr><td style="width: 174px;">webservice</td><td style="width: 392px;">Nombre del WebService.

</td><td style="width: 243px;">Cadena de Texto</td></tr><tr><td style="width: 174px;">tipo\_transmision</td><td style="width: 392px;">Tipo de transmisión para el WebService.

</td><td style="width: 243px;">Cadena de Texto</td></tr><tr><td style="width: 174px;">tipo\_envio</td><td style="width: 392px;">Tipo de envío para el WebService.

</td><td style="width: 243px;">Cadena de Texto</td></tr><tr><td style="width: 174px;">host</td><td style="width: 392px;">Dirección Host establecida para el WebService.

</td><td style="width: 243px;">Cadena de Texto</td></tr><tr><td style="width: 174px;">ip</td><td style="width: 392px;">Dirección IP establecida para el WebService.

</td><td style="width: 243px;">Cadena de Texto</td></tr><tr><td style="width: 174px;">port</td><td style="width: 392px;">Puerto establecido para el WebService.

</td><td style="width: 243px;">Cadena de Texto</td></tr></tbody></table>

</div>#####  

</details>

# Lista de WebServices

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

Obtener información detallada de todos los WebServices creados por el distribuidor.

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

<div><table class="table" style="height: 405px;"><tbody><tr style="height: 57px;"><td style="width: 188px; height: 57px;">apikey</td><td style="width: 320px; height: 57px;">**(Requerido)** Llave de autorización para uso de los Servicios Web.</td><td style="width: 301px; height: 57px;"><span data-darkreader-inline-color="" role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">token</td><td style="width: 320px; height: 41px;">**(Requerido)** Token devuelto por el método getToken.</td><td style="width: 301px; height: 41px;"><span data-darkreader-inline-color="" style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr></tbody></table>

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

```shell
curl -X 'POST' \
  'https://api.service24gps.com/api/v1/getWebserviceDetails' \
  -H 'accept: application/json' \
  -H 'Content-Type: multipart/form-data' \
  -F 'apikey=25sdsd234234aa93sdsdsd37c70118e72' \
  -F 'token=wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=='
```

##### Respuesta de ejemplo:

```JSON
{
  "status": 200,
  "data": [
    {
      "idws": 151,
      "webservice": "Webservice API Create Pruebas",
      "tipo_transmision": "RESTful",
      "tipo_envio": "json",
      "host": "http://192.168.1.100/actual_endpoint"
    }
  ]
}
```

<details class="mb-m" id="bkmrk-ver-par%C3%A1metros%3A-par%C3%A1" open="open"><summary class="text-muted">Ver campos de respuesta:</summary>

<div><table class="table" id="bkmrk-campo-descripci%C3%B3n-fo" style="width: 809px; height: 558px;"><tbody><tr style="height: 47px;"><th style="width: 174px; height: 47px;">Campo</th><th style="width: 392px; height: 47px;">Descripción

</th><th style="width: 243px; height: 47px;">Formato</th></tr><tr style="height: 41px;"><td style="width: 174px; height: 41px;">idws</td><td style="width: 392px;" width="351">Identificador único del repetidor del WebService.

</td><td style="width: 243px; height: 41px;">Entero</td></tr><tr><td style="width: 174px;">webservice</td><td style="width: 392px;">Nombre del WebService.

</td><td style="width: 243px;">Cadena de Texto</td></tr><tr><td style="width: 174px;">tipo\_transmision</td><td style="width: 392px;">Tipo de transmisión para el WebService.

</td><td style="width: 243px;">Cadena de Texto</td></tr><tr><td style="width: 174px;">tipo\_envio</td><td style="width: 392px;">Tipo de envío para el WebService.

</td><td style="width: 243px;">Cadena de Texto</td></tr><tr><td style="width: 174px;">host</td><td style="width: 392px;">Dirección Host establecida para el WebService.

</td><td style="width: 243px;">Cadena de Texto</td></tr><tr><td style="width: 174px;">ip</td><td style="width: 392px;">Dirección IP establecida para el WebService.

</td><td style="width: 243px;">Cadena de Texto</td></tr><tr><td style="width: 174px;">port</td><td style="width: 392px;">Puerto establecido para el WebService.

</td><td style="width: 243px;">Entero</td></tr></tbody></table>

</div>#####  

</details>

# Lista de WebService asignados por cliente

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

Obtener la lista de todas las asignaciones de un WebService realizadas a un cliente o a los clientes existentes.

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

<div><table class="table" style="height: 405px;"><tbody><tr style="height: 57px;"><td style="width: 188px; height: 57px;">apikey</td><td style="width: 320px; height: 57px;">**(Requerido)** Llave de autorización para uso de los Servicios Web.</td><td style="width: 301px; height: 57px;"><span data-darkreader-inline-color="" role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">token</td><td style="width: 320px; height: 41px;">**(Requerido)** Token devuelto por el método getToken.</td><td style="width: 301px; height: 41px;"><span data-darkreader-inline-color="" style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr><td style="width: 188px;">IdCliente</td><td style="width: 320px;">**(Opcional)** Identificador único del cliente, si se proporciona se obtiene la lista de Webservices asignados solo a ese cliente. Si no se proporciona un identificador de cliente se obtiene una lista de todas las asignaciones de todos los clientes en todos los WebServices del distribuidor.</td><td style="width: 301px;"><span data-darkreader-inline-color="" style="color: #3366ff;">661</span></td></tr></tbody></table>

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

```shell
curl -X 'POST' \
  'https://api.service24gps.com/api/v1/getWebservicesByClient' \
  -H 'accept: application/json' \
  -H 'Content-Type: multipart/form-data' \
  -F 'apikey=25sdsd234234aa93sdsdsd37c70118e72' \
  -F 'token=wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==' \
  -F 'IdCliente=661'
```

##### Respuesta de ejemplo:

```JSON
{
  "status": 200,
  "data": [
    {
      "idasignacion": "4909",
      "idws": "151",
      "webservice": "Mi repetidor de datos actualizado",
      "tipo_transmision": "SOAP",
      "tipo_envio": "xml",
      "clientenombre": "Cliente",
      "idcliente": "661",
      "host": "http://192.168.1.100/actual_endpoint"
    }
  ]
}
```

<details class="mb-m" id="bkmrk-ver-par%C3%A1metros%3A-par%C3%A1" open="open"><summary class="text-muted">Ver campos de respuesta:</summary>

<div><table class="table" id="bkmrk-campo-descripci%C3%B3n-fo" style="width: 809px; height: 558px;"><tbody><tr style="height: 47px;"><th style="width: 174px; height: 47px;">Campo</th><th style="width: 392px; height: 47px;">Descripción

</th><th style="width: 243px; height: 47px;">Formato</th></tr><tr style="height: 41px;"><td style="width: 174px; height: 41px;">idasignacion</td><td style="width: 392px;" width="351">Identificador único de la asignación por cliente al WebService.

</td><td style="width: 243px; height: 41px;">Entero</td></tr><tr><td style="width: 174px;">idws</td><td style="width: 392px;">Identificador único del repetidor del WebService.

</td><td style="width: 243px;">Entero</td></tr><tr><td style="width: 174px;">webservice</td><td style="width: 392px;" width="351">Nombre del WebService.

</td><td style="width: 243px;">Cadena de Texto</td></tr><tr><td style="width: 174px;">tipo\_transmision</td><td style="width: 392px;">Tipo de transmisión para el WebService.

</td><td style="width: 243px;">Cadena de Texto</td></tr><tr><td style="width: 174px;">tipo\_envio</td><td style="width: 392px;">Tipo de envío para el WebService.

</td><td style="width: 243px;">Cadena de Texto</td></tr><tr><td style="width: 174px;">clientenombre</td><td style="width: 392px;">Nombre del cliente.

</td><td style="width: 243px;">Cadena de Texto</td></tr><tr><td style="width: 174px;">idcliente</td><td style="width: 392px;">Identificador único del cliente.

</td><td style="width: 243px;">Entero</td></tr><tr><td style="width: 174px;">host</td><td style="width: 392px;">Dirección Host establecida para el WebService.

</td><td style="width: 243px;">Cadena de Texto</td></tr><tr><td style="width: 174px;">ip</td><td style="width: 392px;">Dirección IP establecida para el WebService.

</td><td style="width: 243px;">Cadena de Texto</td></tr><tr><td style="width: 174px;">port</td><td style="width: 392px;">Puerto establecido para el WebService.

</td><td style="width: 243px;">Entero</td></tr></tbody></table>

</div>#####  

</details>

# Apagar / detener envío de datos al WebService

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

Se detiene el envío de datos al WebService, es decir, se desactivan todas las asignaciones a nivel cliente y activo previamente asignadas al WebService.

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

<div><table class="table" style="height: 139px;"><tbody><tr style="height: 57px;"><td style="width: 188px; height: 57px;">apikey</td><td style="width: 320px; height: 57px;">**(Requerido)** Llave de autorización para uso de los Servicios Web.</td><td style="width: 301px; height: 57px;"><span data-darkreader-inline-color="" role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">token</td><td style="width: 320px; height: 41px;">**(Requerido)** Token devuelto por el método getToken.</td><td style="width: 301px; height: 41px;"><span data-darkreader-inline-color="" style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">idws</td><td style="width: 320px; height: 41px;">**(Requerido)** Identificador único del WebService</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">151</span></td></tr></tbody></table>

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

```shell
curl -X 'POST' \
  'https://api.service24gps.com/api/v1/shutdownWebservice' \
  -H 'accept: application/json' \
  -H 'Content-Type: multipart/form-data' \
  -F 'apikey=25sdsd234234aa93sdsdsd37c70118e72' \
  -F 'token=wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==' \
  -F 'idws=151' 
```

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": [
        {
            "idasignacion": "4910",
            "idcliente": "29138",
            "estatus": "0",
            "activos": [
                {
                    "idasignacion": "29627",
                    "idactivo": "127537",
                    "activo": "Nothing Phone de Tom's",
                    "dispositivo": "2771d7ea2cf7a18b",
                    "placa": "SM-A50",
                    "webservice": "Paquetes",
                    "idws": "150",
                    "estatus": "0"
                },
                {
                    "idasignacion": "29628",
                    "idactivo": "287121",
                    "activo": "test2",
                    "dispositivo": "e9bc2805a621fa35",
                    "placa": "test2",
                    "webservice": "Paquetes",
                    "idws": "150",
                    "estatus": "0"
                },
                {
                    "idasignacion": "29629",
                    "idactivo": "337446",
                    "activo": "pruebas_spalestina",
                    "dispositivo": null,
                    "placa": "TXT-999",
                    "webservice": "Paquetes",
                    "idws": "150",
                    "estatus": "0"
                },
                {
                    "idasignacion": "29630",
                    "idactivo": "139608",
                    "activo": "Iphone 15 Pro de Tom",
                    "dispositivo": "84ED6A45873B4AB9BF919C2482B0E725",
                    "placa": "XTR-1807",
                    "webservice": "Paquetes",
                    "idws": "150",
                    "estatus": "0"
                }
            ]
        },
        {
            "idasignacion": "4911",
            "idcliente": "66481",
            "estatus": "0",
            "activos": []
        },
        {
            "idasignacion": "4912",
            "idcliente": "64056",
            "estatus": "0",
            "activos": []
        },
        {
            "idasignacion": "4913",
            "idcliente": "9",
            "estatus": "0",
            "activos": []
        },
        {
            "idasignacion": "4914",
            "idcliente": "589",
            "estatus": "0",
            "activos": []
        },
        {
            "idasignacion": "4915",
            "idcliente": "0",
            "estatus": "0",
            "activos": [
                {
                    "idasignacion": "29627",
                    "idactivo": "127537",
                    "activo": "Nothing Phone de Tom's",
                    "dispositivo": "2771d7ea2cf7a18b",
                    "placa": "SM-A50",
                    "webservice": "Paquetes",
                    "idws": "150",
                    "estatus": "0"
                },
                {
                    "idasignacion": "29628",
                    "idactivo": "287121",
                    "activo": "test2",
                    "dispositivo": "e9bc2805a621fa35",
                    "placa": "test2",
                    "webservice": "Paquetes",
                    "idws": "150",
                    "estatus": "0"
                },
                {
                    "idasignacion": "29629",
                    "idactivo": "337446",
                    "activo": "pruebas_spalestina",
                    "dispositivo": null,
                    "placa": "TXT-999",
                    "webservice": "Paquetes",
                    "idws": "150",
                    "estatus": "0"
                },
                {
                    "idasignacion": "29630",
                    "idactivo": "139608",
                    "activo": "Iphone 15 Pro de Tom",
                    "dispositivo": "84ED6A45873B4AB9BF919C2482B0E725",
                    "placa": "XTR-1807",
                    "webservice": "Paquetes",
                    "idws": "150",
                    "estatus": "0"
                },
                {
                    "idasignacion": "29662",
                    "idactivo": "127537",
                    "activo": "Nothing Phone de Tom's",
                    "dispositivo": "2771d7ea2cf7a18b",
                    "placa": "SM-A50",
                    "webservice": "Paquetes",
                    "idws": "150",
                    "estatus": "0"
                },
                {
                    "idasignacion": "29663",
                    "idactivo": "139608",
                    "activo": "Iphone 15 Pro de Tom",
                    "dispositivo": "84ED6A45873B4AB9BF919C2482B0E725",
                    "placa": "XTR-1807",
                    "webservice": "Paquetes",
                    "idws": "150",
                    "estatus": "0"
                },
                {
                    "idasignacion": "29664",
                    "idactivo": "287121",
                    "activo": "test2",
                    "dispositivo": "e9bc2805a621fa35",
                    "placa": "test2",
                    "webservice": "Paquetes",
                    "idws": "150",
                    "estatus": "0"
                },
                {
                    "idasignacion": "29665",
                    "idactivo": "337446",
                    "activo": "pruebas_spalestina",
                    "dispositivo": null,
                    "placa": "TXT-999",
                    "webservice": "Paquetes",
                    "idws": "150",
                    "estatus": "0"
                }
            ]
        },
        {
            "idasignacion": "4916",
            "idcliente": "69729",
            "estatus": "0",
            "activos": []
        },
        {
            "idasignacion": "4917",
            "idcliente": "77874",
            "estatus": "0",
            "activos": []
        },
        {
            "idasignacion": "4918",
            "idcliente": "78791",
            "estatus": "0",
            "activos": []
        },
        {
            "idasignacion": "4919",
            "idcliente": "78124",
            "estatus": "0",
            "activos": []
        }
    ]
}
```

<details class="mb-m" id="bkmrk-ver-par%C3%A1metros%3A-par%C3%A1" open="open"><summary class="text-muted">Ver campos de respuesta:</summary>

<div><table class="table" id="bkmrk-campo-descripci%C3%B3n-fo" style="width: 809px; height: 596px;"><tbody><tr style="height: 47px;"><th style="width: 174px; height: 47px;">Campo</th><th style="width: 392px; height: 47px;">Descripción

</th><th style="width: 243px; height: 47px;">Formato</th></tr><tr style="height: 41px;"><td style="width: 174px; height: 41px;">idasignacion</td><td style="width: 392px; height: 41px;">Identificador único de la asignación entre el cliente y el WebService

</td><td style="width: 243px; height: 41px;">Entero</td></tr><tr><td style="width: 174px;">idcliente</td><td style="width: 392px;">Identificador único del cliente

</td><td style="width: 243px;">Entero</td></tr><tr><td style="width: 174px;">estatus</td><td style="width: 392px;">Estado de la asignación entre el cliente y el WebService: 1 = Encendido, 0 = Apagado

</td><td style="width: 243px;">Entero</td></tr><tr><td style="width: 174px;">activos</td><td style="width: 392px;">Listado de activos asignados a la relación entre el cliente y WebService, dónde muestra los estatus para saber sí está habilitado o no (1 = Encendido, 0 = Apagado)

</td><td style="width: 243px;">Arreglo</td></tr></tbody></table>

</div></details>

# Encender/ permitir envío de datos al WebService

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

Se inicia el envío de datos al WebService, es decir, se activan todas las asignaciones a nivel cliente y activo previamente configuradas al WebService.

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

<div><table class="table" style="height: 139px;"><tbody><tr style="height: 57px;"><td style="width: 188px; height: 57px;">apikey</td><td style="width: 320px; height: 57px;">**(Requerido)** Llave de autorización para uso de los Servicios Web.</td><td style="width: 301px; height: 57px;"><span data-darkreader-inline-color="" role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">token</td><td style="width: 320px; height: 41px;">**(Requerido)** Token devuelto por el método getToken.</td><td style="width: 301px; height: 41px;"><span data-darkreader-inline-color="" style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">idws</td><td style="width: 320px; height: 41px;">**(Requerido)** Identificador único del Webservice

<div></div></td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">151</span></td></tr></tbody></table>

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

```shell
curl -X 'POST' \
  'https://api.service24gps.com/api/v1/turnOnWebservice' \
  -H 'accept: application/json' \
  -H 'Content-Type: multipart/form-data' \
  -F 'apikey=25sdsd234234aa93sdsdsd37c70118e72' \
  -F 'token=wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==' \
  -F 'idws=151' 
```

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": [
        {
            "idasignacion": "4910",
            "idcliente": "29138",
            "estatus": "1",
            "activos": [
                {
                    "idasignacion": "29627",
                    "idactivo": "127537",
                    "activo": "Nothing Phone de Tom's",
                    "dispositivo": "2771d7ea2cf7a18b",
                    "placa": "SM-A50",
                    "webservice": "Paquetes",
                    "idws": "150",
                    "estatus": "1"
                },
                {
                    "idasignacion": "29628",
                    "idactivo": "287121",
                    "activo": "test2",
                    "dispositivo": "e9bc2805a621fa35",
                    "placa": "test2",
                    "webservice": "Paquetes",
                    "idws": "150",
                    "estatus": "1"
                },
                {
                    "idasignacion": "29629",
                    "idactivo": "337446",
                    "activo": "pruebas_spalestina",
                    "dispositivo": null,
                    "placa": "TXT-999",
                    "webservice": "Paquetes",
                    "idws": "150",
                    "estatus": "1"
                },
                {
                    "idasignacion": "29630",
                    "idactivo": "139608",
                    "activo": "Iphone 15 Pro de Tom",
                    "dispositivo": "84ED6A45873B4AB9BF919C2482B0E725",
                    "placa": "XTR-1807",
                    "webservice": "Paquetes",
                    "idws": "150",
                    "estatus": "1"
                }
            ]
        },
        {
            "idasignacion": "4911",
            "idcliente": "66481",
            "estatus": "1",
            "activos": []
        },
        {
            "idasignacion": "4912",
            "idcliente": "64056",
            "estatus": "1",
            "activos": []
        },
        {
            "idasignacion": "4913",
            "idcliente": "9",
            "estatus": "1",
            "activos": []
        },
        {
            "idasignacion": "4914",
            "idcliente": "589",
            "estatus": "1",
            "activos": []
        },
        {
            "idasignacion": "4915",
            "idcliente": "0",
            "estatus": "1",
            "activos": [
                {
                    "idasignacion": "29627",
                    "idactivo": "127537",
                    "activo": "Nothing Phone de Tom's",
                    "dispositivo": "2771d7ea2cf7a18b",
                    "placa": "SM-A50",
                    "webservice": "Paquetes",
                    "idws": "150",
                    "estatus": "1"
                },
                {
                    "idasignacion": "29628",
                    "idactivo": "287121",
                    "activo": "test2",
                    "dispositivo": "e9bc2805a621fa35",
                    "placa": "test2",
                    "webservice": "Paquetes",
                    "idws": "150",
                    "estatus": "1"
                },
                {
                    "idasignacion": "29629",
                    "idactivo": "337446",
                    "activo": "pruebas_spalestina",
                    "dispositivo": null,
                    "placa": "TXT-999",
                    "webservice": "Paquetes",
                    "idws": "150",
                    "estatus": "1"
                },
                {
                    "idasignacion": "29630",
                    "idactivo": "139608",
                    "activo": "Iphone 15 Pro de Tom",
                    "dispositivo": "84ED6A45873B4AB9BF919C2482B0E725",
                    "placa": "XTR-1807",
                    "webservice": "Paquetes",
                    "idws": "150",
                    "estatus": "1"
                },
                {
                    "idasignacion": "29662",
                    "idactivo": "127537",
                    "activo": "Nothing Phone de Tom's",
                    "dispositivo": "2771d7ea2cf7a18b",
                    "placa": "SM-A50",
                    "webservice": "Paquetes",
                    "idws": "150",
                    "estatus": "1"
                },
                {
                    "idasignacion": "29663",
                    "idactivo": "139608",
                    "activo": "Iphone 15 Pro de Tom",
                    "dispositivo": "84ED6A45873B4AB9BF919C2482B0E725",
                    "placa": "XTR-1807",
                    "webservice": "Paquetes",
                    "idws": "150",
                    "estatus": "1"
                },
                {
                    "idasignacion": "29664",
                    "idactivo": "287121",
                    "activo": "test2",
                    "dispositivo": "e9bc2805a621fa35",
                    "placa": "test2",
                    "webservice": "Paquetes",
                    "idws": "150",
                    "estatus": "1"
                },
                {
                    "idasignacion": "29665",
                    "idactivo": "337446",
                    "activo": "pruebas_spalestina",
                    "dispositivo": null,
                    "placa": "TXT-999",
                    "webservice": "Paquetes",
                    "idws": "150",
                    "estatus": "1"
                }
            ]
        },
        {
            "idasignacion": "4916",
            "idcliente": "69729",
            "estatus": "1",
            "activos": []
        },
        {
            "idasignacion": "4917",
            "idcliente": "77874",
            "estatus": "1",
            "activos": []
        },
        {
            "idasignacion": "4918",
            "idcliente": "78791",
            "estatus": "1",
            "activos": []
        },
        {
            "idasignacion": "4919",
            "idcliente": "78124",
            "estatus": "1",
            "activos": []
        }
    ]
}
```

<details class="mb-m" id="bkmrk-ver-par%C3%A1metros%3A-par%C3%A1" open="open"><summary class="text-muted">Ver campos de respuesta:</summary>

<div><table class="table" id="bkmrk-campo-descripci%C3%B3n-fo" style="width: 809px; height: 596px;"><tbody><tr style="height: 47px;"><th style="width: 174px; height: 47px;">Campo</th><th style="width: 392px; height: 47px;">Descripción

</th><th style="width: 243px; height: 47px;">Formato</th></tr><tr style="height: 41px;"><td style="width: 174px; height: 41px;">idasignacion</td><td style="width: 392px; height: 41px;">Identificador único de la asignación entre el cliente y el WebService

</td><td style="width: 243px; height: 41px;">Entero</td></tr><tr><td style="width: 174px;">idcliente</td><td style="width: 392px;">Identificador único del cliente

</td><td style="width: 243px;">Entero</td></tr><tr><td style="width: 174px;">estatus</td><td style="width: 392px;">Estado de la asignación entre el cliente y el WebService: 1 = Encendido, 0 = Apagado

</td><td style="width: 243px;">Entero</td></tr><tr><td style="width: 174px;">activos</td><td style="width: 392px;">Listado de activos asignados a la relación entre el cliente y WebService, dónde muestra los estatus para saber sí está habilitado o no (1 = Encendido, 0 = Apagado)

</td><td style="width: 243px;">Arreglo</td></tr></tbody></table>

</div></details>

# Lista de activos asignados a un WebService por cliente.

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

Obtener la lista de todos los activos asignados a un WebService por cliente.

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

<div><table class="table" style="height: 405px;"><tbody><tr style="height: 57px;"><td style="width: 188px; height: 57px;">apikey</td><td style="width: 320px; height: 57px;">**(Requerido)** Llave de autorización para uso de los Servicios Web.</td><td style="width: 301px; height: 57px;"><span data-darkreader-inline-color="" role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">token</td><td style="width: 320px; height: 41px;">**(Requerido)** Token devuelto por el método getToken.</td><td style="width: 301px; height: 41px;"><span data-darkreader-inline-color="" style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr><td style="width: 188px;">idws</td><td style="width: 320px;">**(Requerido)** Identificador único del WebService.</td><td style="width: 301px;"><span data-darkreader-inline-color="" style="color: #3366ff;">661</span></td></tr><tr><td style="width: 188px;">IdCliente</td><td style="width: 320px;">**(Requerido)** Identificador único de cliente.</td><td style="width: 301px;"><span data-darkreader-inline-color="" style="color: #3366ff;">67421</span></td></tr></tbody></table>

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

```shell
curl -X 'POST' \
  'https://api.service24gps.com/api/v1/getWebservicesDevices' \
  -H 'accept: application/json' \
  -H 'Content-Type: multipart/form-data' \
  -F 'apikey=25sdsd234234aa93sdsdsd37c70118e72' \
  -F 'token=wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==' \
  -F 'idws=661' \
  -F 'IdCliente=29138'
```

##### Respuesta de ejemplo:

```JSON
{
  "status": 200,
  "data": [
    {
      "idasignacion": "29631",
      "idactivo": "127537",
      "activo": "Nothing Phone de Tom's",
      "dispositivo": "2771d7ea2cf7a18b",
      "placa": "SM-A50",
      "webservice": "Webservice API Create Pruebas",
      "idws": "151",
      "estatus": "1"
    }
  ]
}
```

<details class="mb-m" id="bkmrk-ver-par%C3%A1metros%3A-par%C3%A1" open="open"><summary class="text-muted">Ver campos de respuesta:</summary>

<div><table class="table" id="bkmrk-campo-descripci%C3%B3n-fo" style="width: 809px; height: 530px;"><tbody><tr style="height: 47px;"><th style="width: 174px; height: 47px;">Campo</th><th style="width: 392px; height: 47px;">Descripción

</th><th style="width: 243px; height: 47px;">Formato</th></tr><tr style="height: 41px;"><td style="width: 174px; height: 41px;">idasignacion</td><td style="width: 392px; height: 41px;">Identificador único de la asignación de un activo a un WebService por cliente.

</td><td style="width: 243px; height: 41px;">Entero</td></tr><tr style="height: 69px;"><td style="width: 174px; height: 69px;">idactivo</td><td style="width: 392px; height: 69px;">Identificador único del activo asignado al WebService por cliente.

</td><td style="width: 243px; height: 69px;">Entero</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">activo</td><td style="width: 392px; height: 47px;">Nombre del activo asignado al WebService por cliente.

</td><td style="width: 243px; height: 47px;">Cadena de Texto</td></tr><tr style="height: 69px;"><td style="width: 174px; height: 69px;">dispositivo</td><td style="width: 392px; height: 69px;">Imei del dispositivo del activo asignado al WebService por cliente.

</td><td style="width: 243px; height: 69px;">Cadena de Texto</td></tr><tr style="height: 69px;"><td style="width: 174px; height: 69px;">placa</td><td style="width: 392px; height: 69px;">Placa del dispositivo del activo asignado al WebService por cliente.

</td><td style="width: 243px; height: 69px;">Cadena de Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">webservice</td><td style="width: 392px; height: 47px;">Nombre del WebService.

</td><td style="width: 243px; height: 47px;">Cadena de Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">idws</td><td style="width: 392px; height: 47px;">Identificador único del repetidor del WebService.

</td><td style="width: 243px; height: 47px;">Cadena de Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">estatus</td><td style="width: 392px; height: 47px;">Estado de la asignación del dispositivo en el WebService por cliente.

</td><td style="width: 243px; height: 47px;">Entero</td></tr></tbody></table>

</div>#####  

</details>

# Asignar WebService a un cliente

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

Asignar un WebService a un cliente.

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

<div><table class="table" style="height: 405px;"><tbody><tr style="height: 57px;"><td style="width: 188px; height: 57px;">apikey</td><td style="width: 320px; height: 57px;">**(Requerido)** Llave de autorización para uso de los Servicios Web.</td><td style="width: 301px; height: 57px;"><span data-darkreader-inline-color="" role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">token</td><td style="width: 320px; height: 41px;">**(Requerido)** Token devuelto por el método getToken.</td><td style="width: 301px; height: 41px;"><span data-darkreader-inline-color="" style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr><td style="width: 188px;">idws</td><td style="width: 320px;">**(Requerido)** Identificador único del WebService.</td><td style="width: 301px;"><span data-darkreader-inline-color="" style="color: #3366ff;">661</span></td></tr><tr><td style="width: 188px;">IdCliente</td><td style="width: 320px;">**(Requerido)** Identificador único de cliente.</td><td style="width: 301px;"><span data-darkreader-inline-color="" style="color: #3366ff;">67421</span></td></tr></tbody></table>

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

```shell
curl -X 'POST' \
  'https://api.service24gps.com/api/v1/assignWebserviceToClient' \
  -H 'accept: application/json' \
  -H 'Content-Type: multipart/form-data' \
  -F 'apikey=25sdsd234234aa93sdsdsd37c70118e72' \
  -F 'token=wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==' \
  -F 'idws=661' \
  -F 'IdCliente=29138'
```

##### Respuesta de ejemplo:

```JSON
{
  "status": 200,
  "data": {
    "idasignacion": "4908",
    "idcliente": "29138",
    "idws": "151"
  }
}
```

<details class="mb-m" id="bkmrk-ver-par%C3%A1metros%3A-par%C3%A1" open="open"><summary class="text-muted">Ver campos de respuesta:</summary>

<div><table class="table" id="bkmrk-campo-descripci%C3%B3n-fo" style="width: 809px; height: 530px;"><tbody><tr style="height: 47px;"><th style="width: 174px; height: 47px;">Campo</th><th style="width: 392px; height: 47px;">Descripción

</th><th style="width: 243px; height: 47px;">Formato</th></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">idasignacion</td><td style="width: 392px; height: 47px;">Estado de la asignación del cliente a el WebService.

</td><td style="width: 243px; height: 47px;">Entero</td></tr><tr><td style="width: 174px;">idcliente</td><td style="width: 392px;">Identificador único del cliente.

</td><td style="width: 243px;">Entero</td></tr><tr><td style="width: 174px;">idws</td><td style="width: 392px;">Identificador único del repetidor del WebService.

</td><td style="width: 243px;">Entero</td></tr></tbody></table>

</div>#####  

</details>

# Desasignar un WebService de un cliente.

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

Desasignar un WebService a un cliente.

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

<div><table class="table" style="height: 405px;"><tbody><tr style="height: 57px;"><td style="width: 188px; height: 57px;">apikey</td><td style="width: 320px; height: 57px;">**(Requerido)** Llave de autorización para uso de los Servicios Web.</td><td style="width: 301px; height: 57px;"><span data-darkreader-inline-color="" role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">token</td><td style="width: 320px; height: 41px;">**(Requerido)** Token devuelto por el método getToken.</td><td style="width: 301px; height: 41px;"><span data-darkreader-inline-color="" style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr><td style="width: 188px;">idws</td><td style="width: 320px;">**(Requerido)** Identificador único del WebService.</td><td style="width: 301px;"><span data-darkreader-inline-color="" style="color: #3366ff;">661</span></td></tr><tr><td style="width: 188px;">IdCliente</td><td style="width: 320px;">**(Requerido)** Identificador único de cliente.</td><td style="width: 301px;"><span data-darkreader-inline-color="" style="color: #3366ff;">67421</span></td></tr></tbody></table>

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

```shell
curl -X 'POST' \
  'https://api.service24gps.com/api/v1/unassignWebserviceFromClient' \
  -H 'accept: application/json' \
  -H 'Content-Type: multipart/form-data' \
  -F 'apikey=25sdsd234234aa93sdsdsd37c70118e72' \
  -F 'token=wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==' \
  -F 'idws=661' \
  -F 'IdCliente=29138'
```

##### Respuesta de ejemplo:

```JSON
{
  "status": 200,
  "data": {
    "idasignacion": "4908",
    "idcliente": "29138",
    "idws": "151"
  }
}
```

<details class="mb-m" id="bkmrk-ver-par%C3%A1metros%3A-par%C3%A1" open="open"><summary class="text-muted">Ver campos de respuesta:</summary>

<div><table class="table" id="bkmrk-campo-descripci%C3%B3n-fo" style="width: 809px; height: 530px;"><tbody><tr style="height: 47px;"><th style="width: 174px; height: 47px;">Campo</th><th style="width: 392px; height: 47px;">Descripción

</th><th style="width: 243px; height: 47px;">Formato</th></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">idasignacion</td><td style="width: 392px; height: 47px;">Estado de la asignación del cliente a el WebService.

</td><td style="width: 243px; height: 47px;">Entero</td></tr><tr><td style="width: 174px;">idcliente</td><td style="width: 392px;">Identificador único del cliente.

</td><td style="width: 243px;">Entero</td></tr><tr><td style="width: 174px;">idws</td><td style="width: 392px;">Identificador único del repetidor del WebService.

</td><td style="width: 243px;">Entero</td></tr></tbody></table>

</div>#####  

</details>

# Asignar un activo a un WebService por cliente.

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

Asignar un activo a un WebService por cliente.

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

<div><table class="table" style="height: 405px;"><tbody><tr style="height: 57px;"><td style="width: 188px; height: 57px;">apikey</td><td style="width: 320px; height: 57px;">**(Requerido)** Llave de autorización para uso de los Servicios Web.</td><td style="width: 301px; height: 57px;"><span data-darkreader-inline-color="" role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">token</td><td style="width: 320px; height: 41px;">**(Requerido)** Token devuelto por el método getToken.</td><td style="width: 301px; height: 41px;"><span data-darkreader-inline-color="" style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr><td style="width: 188px;">idws</td><td style="width: 320px;">**(Requerido)** Identificador único del WebService.</td><td style="width: 301px;"><span data-darkreader-inline-color="" style="color: #3366ff;">661</span></td></tr><tr><td style="width: 188px;">IdCliente</td><td style="width: 320px;">**(Requerido)** Identificador único de cliente.</td><td style="width: 301px;"><span data-darkreader-inline-color="" style="color: #3366ff;">67421</span></td></tr><tr><td style="width: 188px;">IdActivo</td><td style="width: 320px;">**(Requerido)** Identificador único de activo.</td><td style="width: 301px;"><span data-darkreader-inline-color="" style="color: #3366ff;">1234</span></td></tr></tbody></table>

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

```shell
curl -X 'POST' \
  'https://api.service24gps.com/api/v1/assignVehicleToClientWebservice' \
  -H 'accept: application/json' \
  -H 'Content-Type: multipart/form-data' \
  -F 'apikey=25sdsd234234aa93sdsdsd37c70118e72' \
  -F 'token=wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==' \
  -F 'idws=661' \
  -F 'IdCliente=29138' \
  -F 'IdActivo=127537'
```

##### Respuesta de ejemplo:

```JSON
{
  "status": 200,
  "data": {
    "idasignacion": "29631",
    "idcliente": "29138",
    "idws": "151",
    "idactivo": "127537"
  }
}
```

<details class="mb-m" id="bkmrk-ver-par%C3%A1metros%3A-par%C3%A1" open="open"><summary class="text-muted">Ver campos de respuesta:</summary>

<div><table class="table" id="bkmrk-campo-descripci%C3%B3n-fo" style="width: 809px; height: 530px;"><tbody><tr style="height: 47px;"><th style="width: 174px; height: 47px;">Campo</th><th style="width: 392px; height: 47px;">Descripción

</th><th style="width: 243px; height: 47px;">Formato</th></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">idasignacion</td><td style="width: 392px; height: 47px;">Estado de la asignación del activo a el WebService del cliente.

</td><td style="width: 243px; height: 47px;">Entero</td></tr><tr><td style="width: 174px;">idcliente</td><td style="width: 392px;">Identificador único del cliente.

</td><td style="width: 243px;">Entero</td></tr><tr><td style="width: 174px;">idws</td><td style="width: 392px;">Identificador único del repetidor del WebService.

</td><td style="width: 243px;">Entero</td></tr><tr><td style="width: 174px;">idactivo</td><td style="width: 392px;">Identificador único del activo asignado al WebService.

</td><td style="width: 243px;">Entero</td></tr></tbody></table>

</div>#####  

</details>

# Desasignar un activo a un WebService por cliente.

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

Desasignar un activo a un WebService por cliente.

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

<div><table class="table" style="height: 405px;"><tbody><tr style="height: 57px;"><td style="width: 188px; height: 57px;">apikey</td><td style="width: 320px; height: 57px;">**(Requerido)** Llave de autorización para uso de los Servicios Web.</td><td style="width: 301px; height: 57px;"><span data-darkreader-inline-color="" role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">token</td><td style="width: 320px; height: 41px;">**(Requerido)** Token devuelto por el método getToken.</td><td style="width: 301px; height: 41px;"><span data-darkreader-inline-color="" style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr><td style="width: 188px;">idws</td><td style="width: 320px;">**(Requerido)** Identificador único del WebService.</td><td style="width: 301px;"><span data-darkreader-inline-color="" style="color: #3366ff;">661</span></td></tr><tr><td style="width: 188px;">IdCliente</td><td style="width: 320px;">**(Requerido)** Identificador único de cliente.</td><td style="width: 301px;"><span data-darkreader-inline-color="" style="color: #3366ff;">67421</span></td></tr><tr><td style="width: 188px;">IdActivo</td><td style="width: 320px;">**(Requerido)** Identificador único de activo.</td><td style="width: 301px;"><span data-darkreader-inline-color="" style="color: #3366ff;">12345</span></td></tr></tbody></table>

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

```shell
curl -X 'POST' \
  'https://api.service24gps.com/api/v1/unassignVehicleFromClientWebservice' \
  -H 'accept: application/json' \
  -H 'Content-Type: multipart/form-data' \
  -F 'apikey=25sdsd234234aa93sdsdsd37c70118e72' \
  -F 'token=wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==' \
  -F 'idws=661' \
  -F 'IdCliente=29138' \
  -F 'IdActivo=127537'
```

##### Respuesta de ejemplo:

```JSON
{
  "status": 200,
  "data": {
    "idasignacion": "29631",
    "idcliente": "29138",
    "idws": "151",
    "idactivo": "127537"
  }
}
```

<details class="mb-m" id="bkmrk-ver-par%C3%A1metros%3A-par%C3%A1" open="open"><summary class="text-muted">Ver campos de respuesta:</summary>

<div><table class="table" id="bkmrk-campo-descripci%C3%B3n-fo" style="width: 809px; height: 530px;"><tbody><tr style="height: 47px;"><th style="width: 174px; height: 47px;">Campo</th><th style="width: 392px; height: 47px;">Descripción

</th><th style="width: 243px; height: 47px;">Formato</th></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">idasignacion</td><td style="width: 392px; height: 47px;">Estado de la asignación del activo a el WebService del cliente.

</td><td style="width: 243px; height: 47px;">Entero</td></tr><tr><td style="width: 174px;">idcliente</td><td style="width: 392px;">Identificador único del cliente.

</td><td style="width: 243px;">Entero</td></tr><tr><td style="width: 174px;">idws</td><td style="width: 392px;">Identificador único del repetidor del WebService.

</td><td style="width: 243px;">Entero</td></tr><tr><td style="width: 174px;">idactivo</td><td style="width: 392px;">Identificador único del activo asignado al WebService.

</td><td style="width: 243px;">Entero</td></tr></tbody></table>

</div>#####  

</details>