# Assign User to a Sub-account

### Method and URL

<mark style="color:green;">`POST`</mark> | <mark style="color:orange;">`[BASE_URL]`</mark>`/v1/sub-merchants/admin`

> Don't forget to use <mark style="color:orange;">`X-SubMerchant-Id`</mark> of the intended Sub-account in the Request's Header Data&#x20;

### Request

#### Example Body Request Payload

```json
{
    "email": "admin@acme.inc",
    "name": "john mayer"
}
```

#### Request Body Schema

<table data-full-width="true"><thead><tr><th width="224">Schema Path</th><th width="357">Description</th><th width="174">Specifications</th></tr></thead><tbody><tr><td><strong>email</strong></td><td>Email address of the admin user</td><td><ul><li>Required</li><li>Email Format</li></ul></td></tr><tr><td><strong>name</strong></td><td>Full name of the admin user</td><td><ul><li>Required</li></ul></td></tr></tbody></table>

### Response

#### Example Response Body

{% code fullWidth="true" %}

```json
{
    "code": "00",
    "message": "success"
}
```

{% endcode %}

#### **Response Data Schema**

<table><thead><tr><th width="151">Schema Path</th><th width="362">Description</th><th>Data Type Validation</th></tr></thead><tbody><tr><td><strong>code</strong></td><td>Response Code from Harsya</td><td>String</td></tr><tr><td><strong>message</strong></td><td>Human readable message that represent response from Harsya</td><td>String</td></tr></tbody></table>
