# \_setNextOfKin

Adds Next of Kin details for a User.

### Parameters

#### id

The ID of the User.

#### name

The type of detail to be set for the Next of Kin. This can be name, phone\_mobile, phone\_landline or address.

#### val

The value of the details to be set for the Next of Kin detail.

### Examples

#### name example

```
FM_api('User_setNextOfKin', ['id' => '82878', 'name' => 'name', 'val' => 'Test name']);
```

#### phone\_mobile example

```
FM_api('User_setNextOfKin', ['id' => '82878', 'name' => 'phone_mobile', 'val' => '07731623498']);
```

#### phone\_landline example

```
FM_api('User_setNextOfKin', ['id' => '82878', 'name' => 'phone_landline', 'val' => '02830242983']);
```

#### address example

```
FM_api('User_setNextOfKin', ['id' => '82878', 'name' => 'address', 'val' => '18 Test steet']);
```

### On Success

```
{"ok":1}
```
