---
description: Insert new ticket into database.
---

# \[POST] Add

#### Base URL:

```javascript
{YOUR-DOMAIN}/upload/ost_wbs/
```

#### \[ Header ] Authentication

| Field    |   Type   | Mandatory |
| -------- | :------: | --------- |
| `apikey` | `string` | ✔️        |

#### \[ Body ] parameters

<table><thead><tr><th>Option</th><th>Type</th><th width="150" align="center">Mandatory</th></tr></thead><tbody><tr><td><code>query</code></td><td><code>string</code></td><td align="center">✔️</td></tr><tr><td><code>condition</code></td><td><code>string</code></td><td align="center">✔️</td></tr><tr><td><code>title</code></td><td><code>string</code></td><td align="center">✔️</td></tr><tr><td><code>subject</code></td><td><code>string</code></td><td align="center">✔️</td></tr><tr><td><code>user_id</code></td><td><code>int</code></td><td align="center">✔️</td></tr><tr><td><code>priority_id</code></td><td><code>int</code></td><td align="center">✔️</td></tr><tr><td><code>status_id</code></td><td><code>int</code></td><td align="center">✔️</td></tr><tr><td><code>dept_id</code></td><td><code>int</code></td><td align="center">✔️</td></tr><tr><td><code>sla_id</code></td><td><code>int</code></td><td align="center">✔️</td></tr><tr><td><code>topic_id</code></td><td><code>int</code></td><td align="center">✔️</td></tr></tbody></table>

#### Body request example:

<pre class="language-json"><code class="lang-json"><strong>{
</strong>"query":"ticket",
"condition":"add",
"parameters":{
  "title":"Titulo do Ticket",
  "subject":"Subject do Ticket",
<strong>  "user_id": 1,
</strong>  "priority_id":2,
  "status_id":1,
  "dept_id":1,
  "sla_id":1,
  "topic_id":1
  }
}
</code></pre>

#### Status Code

{% tabs %}
{% tab title="200 OK" %}
```json
{
    "status": "Success",
    "time": 0.09253191947937012,
    "data": "3425" // Ticket ID
}
```
{% endtab %}
{% endtabs %}
