> For the complete documentation index, see [llms.txt](https://docs.fieldmotion.com/fieldmotion-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fieldmotion.com/fieldmotion-api-docs/asset/_setcustomer.md).

# \_setCustomer

Assign a Customer to an Asset.

### Parameters

#### ids

The ID of the asset.

#### val

The ID of the Customer to be assigned to the Asset.

### Example

```
FM_api('Asset_setOwner', ['id' => '4', 'val' => '2']);
```

### Result

#### On Success

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