# Crear ticket

**Parámetros**

<table border="1" id="bkmrk-method--m-get%2Cpost%2Cp" style="border-collapse: collapse; width: 100%; height: 290px;"><tbody><tr style="height: 29px;"><td style="width: 33.3333%; height: 29px;">Method</td><td style="width: 33.3333%; height: 29px;">-m</td><td style="width: 33.3333%; height: 29px;">get,post,put o delete</td></tr><tr style="height: 29px;"><td style="width: 33.3333%; height: 29px;">host</td><td style="width: 33.3333%; height: 29px;">-i, --ip</td><td style="width: 33.3333%; height: 29px;">nombre de tu sitio zendesk</td></tr><tr style="height: 29px;"><td style="width: 33.3333%; height: 29px;">user</td><td style="width: 33.3333%; height: 29px;">-us</td><td style="width: 33.3333%; height: 29px;">nombre de tu usuario (email)</td></tr><tr style="height: 29px;"><td style="width: 33.3333%; height: 29px;">password</td><td style="width: 33.3333%; height: 29px;">-p</td><td style="width: 33.3333%; height: 29px;">pass de la API</td></tr><tr><td style="width: 33.3333%;">token</td><td style="width: 33.3333%;">-t </td><td style="width: 33.3333%;">token de la API</td></tr><tr style="height: 29px;"><td style="width: 33.3333%; height: 29px;">ticket name</td><td style="width: 33.3333%; height: 29px;">-tn</td><td style="width: 33.3333%; height: 29px;">nombre del ticket</td></tr><tr style="height: 29px;"><td style="width: 33.3333%; height: 29px;">ticket comment</td><td style="width: 33.3333%; height: 29px;">-tb</td><td style="width: 33.3333%; height: 29px;">contenido (texto) del ticket</td></tr><tr style="height: 29px;"><td style="width: 33.3333%; height: 29px;">ticket id</td><td style="width: 33.3333%; height: 29px;">-id</td><td style="width: 33.3333%; height: 29px;">id del ticket</td></tr><tr style="height: 29px;"><td style="width: 33.3333%; height: 29px;">ticket status</td><td style="width: 33.3333%; height: 29px;">-ts</td><td style="width: 33.3333%; height: 29px;">new,open,hold, pending,solved o closed</td></tr><tr style="height: 29px;"><td style="width: 33.3333%; height: 29px;">ticket priority</td><td style="width: 33.3333%; height: 29px;">-tp</td><td style="width: 33.3333%; height: 29px;">urgent,high,normal o low</td></tr><tr style="height: 29px;"><td style="width: 33.3333%; height: 29px;">ticket type</td><td style="width: 33.3333%; height: 29px;">-tt</td><td style="width: 33.3333%; height: 29px;">problem, incident,question, task</td></tr></tbody></table>

Se podrá autenticar en la API con token o pass según lo tengas configurado en zendesk. Para ello introduce el argumento necesario.

Las opciones de creación de grupo son : nombre, comentario (cuerpo del mensaje), status, prioridad y tipo.

La id se le asigna al ticket automáticamente.

Ejemplo de creación de ticket con ejecución manual.

```
./pandora_zendesk -m post  -i pandoraplugin -us <email> -p <password> -tn "manual" -tb "esto es el contenido de la incidencia" -tp urgent -tt "question" -ts new
```

Ese comando creara el siguiente ticket :

[![image-1641400983333.png](https://pandorafms.com/guides/public/uploads/images/gallery/2022-01/scaled-1680-/image-1641400983333.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2022-01/image-1641400983333.png)

[![image-1641401007730.png](https://pandorafms.com/guides/public/uploads/images/gallery/2022-01/scaled-1680-/image-1641401007730.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2022-01/image-1641401007730.png)