> 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/_setowner.md).

# \_setOwner

Set the owner for an Asset.

### Parameters

#### id

The ID of the Asset on which the owner will be changed.

#### val

The Customer ID of the Customer to be set for the Asset.

### Example

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

### Result

#### On Success

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