Link a device to a customer

Links a supported IoT device to a customer so it can create callouts on their behalf. Once linked, ongoing device messages are sent to the device-event endpoint, where a device template maps them to AURA actions.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
customerIdintegerRequired
deviceSerialstringRequired
deviceSupplierstringRequired
deviceAliasstringOptional
deviceTypeintegerOptional

Optional device type identifier. If omitted, AURA attempts to resolve the type from deviceSupplier. The supplied serial must still match the registered device template for that type or supplier.

firmwareVersionstring or integerOptional

Response

Successful.
idinteger
customerIdinteger
customerSourceIdinteger
deviceIdstring

The device identifier AURA derives from the serial (used to match incoming device events).

deviceSerialstring
aliasstring
deviceTypeIdinteger
firmwareVersionstring
defaultLocationobject or null
healthCheckLastReceivedDatedatetime or null
batteryLevelinteger or null
batteryLevelLastReceivedDatedatetime or null
createdAtdatetime
updatedAtdatetime

Errors

400
Bad Request Error
401
Unauthorized Error