_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}"

Last updated