---
description: Insert new SLA 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 align="center">Mandatory</th><th data-hidden>Description</th></tr></thead><tbody><tr><td><code>query</code></td><td><code>string</code></td><td align="center">✔️</td><td>Query</td></tr><tr><td><code>condition</code></td><td><code>string</code></td><td align="center">✔️</td><td>Condition</td></tr><tr><td><code>name</code></td><td><code>string</code></td><td align="center">✔️</td><td>SLA Name</td></tr><tr><td><code>flags</code></td><td><code>string</code></td><td align="center">✔️</td><td>SLA Status</td></tr><tr><td><code>grace_period</code></td><td><code>int</code></td><td align="center">✔️</td><td>Grace Period</td></tr><tr><td><code>schedule_id</code></td><td><code>int</code></td><td align="center">✔️</td><td>Schedule ID</td></tr><tr><td><code>notes</code></td><td><code>string</code></td><td align="center">✔️</td><td>Notes</td></tr></tbody></table>

#### Body request example:

```json
{
"query":"sla",
"condition":"add",
"parameters":{
    "name":"SLA Name",
    "flags":1,
    "grace_period":1,
    "schedule_id":1,
    "notes": "This is a note"
    }
}
```

#### Status Code

{% tabs %}
{% tab title="200 OK" %}
```json
{
    "status": "Success",
    "time": 0.09253191947937012,
    "data": "Success! Row 1 affected."
}
```
{% endtab %}
{% endtabs %}
