# Crear ticket - createticket

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

Este método permite crear un ticket.

<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: 662px;"><tbody><tr style="height: 41px;"><th style="width: 146px; height: 41px;">Parámetros</th><th style="width: 370px; height: 41px;">Descripción</th><th style="width: 293px; height: 41px;">Ejemplo</th></tr><tr style="height: 41px;"><td style="width: 146px; height: 41px;">apikey</td><td style="width: 370px; height: 41px;">Llave de autorización para uso de los Servicios Web.</td><td style="width: 293px; height: 41px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 146px; height: 41px;">token</td><td style="width: 370px; height: 41px;">Token devuelto por el método getToken.</td><td style="width: 293px; height: 41px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr style="height: 69px;"><td style="width: 146px; height: 69px;">nombre</td><td style="width: 370px; height: 69px;">Nombre con el que se identificará el ticket dentro de la plataforma.

</td><td style="width: 293px; height: 69px;"><span style="color: #3366ff;">cliente</span></td></tr><tr style="height: 47px;"><td style="width: 146px; height: 47px;">telefono

</td><td style="width: 370px; height: 47px;">Número telefónico de contacto

</td><td style="width: 293px; height: 47px;"><span style="color: #3366ff;">123456789</span>

</td></tr><tr style="height: 47px;"><td style="width: 146px; height: 47px;">email

</td><td style="width: 370px; height: 47px;">Correo electrónico de contacto

</td><td style="width: 293px; height: 47px;"><span role="presentation" style="padding-right: 0.1px;"><span style="color: #3366ff;">test@test.com</span></span></td></tr><tr style="height: 47px;"><td style="width: 146px; height: 47px;">idPlataforma

</td><td style="width: 370px; height: 47px;">Identificador único de plataforma

</td><td style="width: 293px; height: 47px;"><span role="presentation" style="padding-right: 0.1px;"><span style="color: #3366ff;">1</span></span></td></tr><tr style="height: 47px;"><td style="width: 146px; height: 47px;">idClasificacion

</td><td style="width: 370px; height: 47px;">Identificador único de clasificación

</td><td style="width: 293px; height: 47px;"><span role="presentation" style="padding-right: 0.1px;"><span style="color: #3366ff;">1 </span></span></td></tr><tr style="height: 47px;"><td style="width: 146px; height: 47px;">idTipo

</td><td style="width: 370px; height: 47px;">Identificador único de tipo

</td><td style="width: 293px; height: 47px;"><span role="presentation" style="padding-right: 0.1px;"><span style="color: #3366ff;">1</span></span></td></tr><tr style="height: 47px;"><td style="width: 146px; height: 47px;">idCliente

</td><td style="width: 370px; height: 47px;">Identificador único de cliente

</td><td style="width: 293px; height: 47px;"><span role="presentation" style="padding-right: 0.1px;"><span style="color: #3366ff;">1</span></span></td></tr><tr style="height: 47px;"><td style="width: 146px; height: 47px;">activos

</td><td style="width: 370px; height: 47px;">Lista de activos separados por coma

</td><td style="width: 293px; height: 47px;"><span role="presentation" style="padding-right: 0.1px;"><span style="color: #3366ff;"><span class="webkit-html-attribute-value">activo 1. activo2, activo 3</span></span></span></td></tr><tr style="height: 47px;"><td style="width: 146px; height: 47px;">fechaInicio

</td><td style="width: 370px; height: 47px;">Fecha inicio

</td><td style="width: 293px; height: 47px;"><span role="presentation" style="padding-right: 0.1px;"><span style="color: #3366ff;">2022-01-01</span></span></td></tr><tr style="height: 47px;"><td style="width: 146px; height: 47px;">fechaFin

</td><td style="width: 370px; height: 47px;">Fecha fin

</td><td style="width: 293px; height: 47px;"><span role="presentation" style="padding-right: 0.1px;"><span style="color: #3366ff;">2022-01-21</span></span></td></tr><tr style="height: 47px;"><td style="width: 146px; height: 47px;">descripcion

</td><td style="width: 370px; height: 47px;">Descripción sobre el ticket.

</td><td style="width: 293px; height: 47px;"><span role="presentation" style="padding-right: 0.1px;"><span style="color: #3366ff;">Buena tarde, Se solicita apoyo</span></span></td></tr></tbody></table>

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

```shell
curl --location --request POST 'https://api.service24gps.com/api/v1/createticket' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="' \
--form 'nombre="cliente"' \
--form 'tipo_cerca="1"' \
--form 'telefono="123456789"' \
--form 'email="test@test.com"' \
--form 'idPlataforma="1"' \
--form 'idClasificacion="1"' \
--form 'idTipo="1"' \
--form 'idCliente="1"' \
--form 'activos="activo1, activo 2, activo 3"' \
--form 'fechaInicio="2022-01-01"' \
--form 'fechaFin="2022-01-21"' \
--form 'descripcion="Buena tarde, Se solicita apoyo"'
```

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": {
        "idticket": 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: 94px;"><tbody><tr style="height: 47px;"><td style="width: 174px; height: 47px;">idticket</td><td style="width: 392px; height: 47px;">Identificador único del ticket

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

</div></details>