Create
POST https://api.pegasusgateway.com/assets
Create an asset
Field | Required | Type | Description |
---|---|---|---|
first_name | optional | String | First name |
last_name | optional | String | Last name |
groups | optional | Number[] | Groups associated to asset |
type | required | String | Asset type |
phone | optional | String | Phone number |
optional | String | Email address |
Request Body
{"first_name"=>"First Name", "last_name"=>"Last Name", "type"=>"driver", "email"=>"driver@email.com", "phone"=>123456789, "groups"=>[108]}
RESPONSES
status: OK
{"info":{"phone":"123456789","first_name":"First Name","last_name":"Last Name","type":"driver","email":"driver@email.com"},"__updated":1643918199.935366,"name":"First Name Last Name","ibuttons":[],"id":3664,"fingerprints":[],"primary":null,"__created":1643918199.638594,"device":null,"token":null,"tracker":{"active":false,"asset_id":3664,"token":null},"groups":[108],"__version":"6.11.0-gm","images":{"photo":false,"on_icon":false,"idle_icon":false,"icon":false,"off_icon":false},"rfids":[],"type":"asset","properties":{},"counters":null}