Para criar um ticket, envie um JSON com as seguintes propriedades:
| Campo | Obrigatório | Descrição |
|---|---|---|
| title | Sim | Título curto do problema |
| description | Sim | Detalhamento completo |
| channel | Sim | Origem: Canal configurado |
| priority | Sim | BLOCKING, CRITICAL, HIGH, MEDIUM, LOW |
| projectId | Sim | ID numérico do projeto |
| clientId | Sim | ID numérico do cliente |
| responsibleId | Sim | ID do usuário responsável |
POST
/ticketapi/1.0/api/v1/tickets
curl \
--request POST 'https://api.neppo.com.br/ticketapi/1.0/api/v1/tickets' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"title":"Ajustar cor do botão principal","description":"O botão 'Comprar' deve ter a cor verde escuro.","channel":"PORTAL","priority":"MEDIUM","projectId":12,"clientId":543,"responsibleId":99,"tags":[{"name":"frontend","tenantId":1}]}'
Request example
{
"title": "Ajustar cor do botão principal",
"description": "O botão 'Comprar' deve ter a cor verde escuro.",
"channel": "PORTAL",
"priority": "MEDIUM",
"projectId": 12,
"clientId": 543,
"responsibleId": 99,
"tags": [
{
"name": "frontend",
"tenantId": 1
}
]
}
Response examples (200)
{
"status": "SUCCESS",
"message": "Ticket criado com sucesso",
"data": {
"id": 102,
"title": "Ajustar cor do botão principal"
}
}
Response examples (400)
{
"status": "Bad Request"
}
Response examples (401)
{
"status": "Unauthorized"
}