# Crear un equipo GPS - createDevice

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

Crear un equipo.

<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: 470px; width: 822px;"><tbody><tr style="height: 41px;"><td style="width: 194.234px; height: 41px;">**Parámetros**</td><td style="width: 344.422px; height: 41px;">**Descripción**</td><td style="width: 270.344px; height: 41px;">**Ejemplo**</td></tr><tr style="height: 57px;"><td style="width: 194.234px; height: 57px;">apikey</td><td style="width: 344.422px; height: 57px;">**(Requerido)** Llave de autorización para uso de los Servicios Web.</td><td style="width: 270.344px; height: 57px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e7</span></td></tr><tr style="height: 41px;"><td style="width: 194.234px; height: 41px;">token</td><td style="width: 344.422px; height: 41px;">**(Requerido)** Token devuelto por el método **[getToken](https://docs.redgps.com/books/webservice/page/metodo-de-autenticacion-gettoken-7ef)**.</td><td style="width: 270.344px; height: 41px;"><span style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr style="height: 41px;"><td style="width: 194.234px; height: 40px;"><div><div><div><div>tipo_equipo</div></div></div></div></td><td style="width: 344.422px; height: 40px;">**(Opcional)** Tipo de equipo.  
- Obtener los tipos en el método **[getTypesDevices](https://docs.redgps.com/books/webservice/page/gettypesdevice).**</td><td style="width: 270.344px; height: 40px;"><span style="color: #3366ff;">1</span></td></tr><tr style="height: 41px;"><td style="width: 194.234px; height: 41px;">nombre</td><td style="width: 344.422px; height: 41px;">**(Requerido)** Nombre del equipo.</td><td style="width: 270.344px; height: 41px;"><span style="color: #3366ff;">000123</span></td></tr><tr style="height: 41px;"><td style="width: 194.234px; height: 41px;">imei</td><td style="width: 344.422px; height: 41px;">**(Opcional)** IMEI del equipo.</td><td style="width: 270.344px; height: 41px;"><span style="color: #3366ff;">000123</span></td></tr><tr style="height: 47px;"><td style="width: 194.234px; height: 47px;">marca</td><td style="width: 344.422px; height: 47px;">**(Requerido)** Marca del equipo.   
\- Obtener los tipos en el método **[getBrands.](https://docs.redgps.com/books/webservice/page/getbrands)**

</td><td style="width: 270.344px; height: 47px;"><span style="color: #3366ff;">1</span></td></tr><tr style="height: 41px;"><td style="width: 194.234px; height: 41px;">modelo</td><td style="width: 344.422px; height: 41px;">**(Requerido)** Modelo del equipo.  
- Obtener los tipos en el método **[getModels.](https://docs.redgps.com/books/webservice/page/getmodel)**</td><td style="width: 270.344px; height: 41px;"><span style="color: #3366ff;">1</span></td></tr><tr style="height: 41px;"><td style="width: 194.234px; height: 41px;">chip\_telefonico</td><td style="width: 344.422px; height: 41px;">**(Opcional)** Número telefónico.</td><td style="width: 270.344px; height: 41px;"><span style="color: #3366ff;">2222112233</span></td></tr><tr style="height: 80px;"><td style="width: 194.234px; height: 80px;">idzona\_horaria</td><td style="width: 344.422px; height: 80px;">**(Opcional)** Identificador único de la zona horaria.  
\- Obtener los tipos en el método **[getTimeZone](https://docs.redgps.com/books/webservice/page/obtiene-el-listado-de-zonas-horarias-gettimezone).**

</td><td style="width: 270.344px; height: 80px;"><span style="color: #3366ff;">1</span></td></tr><tr><td style="width: 194.234px;">idpais</td><td style="width: 344.422px;">**(Opcional)** Identificador único del país.

\- Obtener los países en el método **[getCountrys](https://docs.redgps.com/books/webservice/page/obtiene-el-listado-de-paises-getcountrys)**

</td><td style="width: 270.344px;"><span style="color: #3366ff;">1</span></td></tr></tbody></table>

</div></details>##### Solicitud de ejemplo crear un equipo:

```shell
curl --location 'https://api.service24gps.com/api/v1/createDevice' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e7"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="' \
--form 'tipo_equipo="1"' \
--form 'nombre="000123"' \
--form 'imei="000123"' \
--form 'marca="1"' \
--form 'modelo="1"' \
--form 'chip_telefonico="2222112233"' \
--form 'idzona_horaria="1"' \
--form 'idpais="1"'
```

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": "000123"
}
```

<p class="callout info">**Nota:** Cuando supere el límite permitido para crear equipos se mostrará la siguiente respuesta.</p>

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": {
        "status": 30700,
        "message": "This is a Free account, it has exceeded the allowed limit of created devices"
    }
}
```

<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: 94px;"><tbody><tr><td style="width: 174px;">**Campo**</td><td style="width: 392px;">**Descripción**

</td><td style="width: 243px;">**Formato**</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">Nombre</td><td style="width: 392px; height: 47px;">Nombre del equipo.

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

</div></details>