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.
idintegerOptional
customerIdintegerOptional
customerSourceIdintegerOptional
deviceIdstringOptional

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

deviceSerialstringOptional
aliasstringOptional
deviceTypeIdintegerOptional
firmwareVersionstringOptional
defaultLocationobject or nullOptional
healthCheckLastReceivedDatedatetime or nullOptional
batteryLevelinteger or nullOptional
batteryLevelLastReceivedDatedatetime or nullOptional
createdAtdatetimeOptional
updatedAtdatetimeOptional

Errors

400
Bad Request Error
401
Unauthorized Error