---
description: Insert new user 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>name</code></td><td><code>string</code></td><td align="center">✔️</td></tr><tr><td><code>email</code></td><td><code>string</code></td><td align="center">✔️</td></tr><tr><td><code>password</code></td><td><code>string (Encoded by user)</code></td><td align="center">✔️</td></tr><tr><td><code>timezone</code></td><td><code>string</code></td><td align="center">✔️</td></tr><tr><td><code>phone</code></td><td><code>int</code></td><td align="center">✔️</td></tr><tr><td><code>org_id</code></td><td><code>int</code></td><td align="center">✔️</td></tr><tr><td><code>default_email_id</code></td><td><code>int</code></td><td align="center">✔️</td></tr><tr><td><code>status</code></td><td><code>int</code></td><td align="center">✔️</td></tr></tbody></table>

#### Body request example:

```json
{
"query":"user",
"condition":"add",
"parameters":{
    "name": "User Name",
    "email": "UserEmail@gmail.com",
    "password": "UserPassword",
    "timezone": "Europe/London",
    "phone": 999999999,
    "org_id":1,
    "default_email_id":1,
    "status":1
    }
}
```

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