# \_setUser

Sets the User of an Opportunity.

### Parameters

#### id

The ID of the Opportunity being modified.

#### val

The ID of the User the Opportunity will be set to.

### Example

```
FM_api('Opportunity_setUser',[
  'id'=>'60056',
  'val'=>'72334'
]);
```

### Results

#### On Success

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

#### On Failure

If the "id" parameter is not set:

```
{"error":"missing or invalid parameter: id"}
```

If the "val" parameter is not set:

```
{"error":"missing or invalid parameter: val"}
```
