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

# \_new

Creates a new asset

### Parameters

#### code

Asset serial number

#### name

Asset name

#### owner\_id

Location/Asset/Client id

#### location\_type

Location type \[1,2,3]

#### location\_id

Location/Asset/Client id

#### type\_id

Asset type id

### Example

```
FM_api('Asset_new', ['id'=>'0','code'=>'API Test','name'=>'API Test','owner_id'=>'1','location_type'=>'1','type_id'=>'1'])
```

### On Success

```
"{"ok":1,"id":12}"
```
