# \_set

Sets the value of a specified property of a specified User.

### Parameters

#### id

The ID of the User.

#### name

The name of the property to change.

**Accepted names:**

* 'address',
* 'bgcolour',
* 'cost\_per\_hour',
* 'date\_of\_birth',
* 'hours\_per\_week',
* 'name',
* 'phone\_mobile',
* 'phone\_landline',
* 'price\_per\_hour',
* 'password',
* 'vehicle\_id'.

#### val

The new value of the property.

### Example

```
FM_api('User_set', ['id' => '123', 'name' => 'cost_per_hour', 'val' => '210.50']);
```

### Result

#### On Success

```
{'ok':1}
```

#### On Failure

```
{'error':'unknown variable name'}
```
