Device Connectivity Made Easy

Focus on your product and innovation and leave communication and management to DeviceHive.

Get Started

Creates new device notification.

Request

HTTP Request

POST /device/{deviceId}/notification

Parameters

Parameter Name

Required

Type

Description

deviceId

Yes

string

Device unique identifier.

Authorization

Access JSON Web Token (CreateDeviceNotification)

Request Body

In the request body, supply a DeviceNotification resource.

Property Name

Required

Type

Description

notification

Yes

string

Notification name

timestamp

No

datetime

Notification timestamp (UTC)

parameters

No

object

Notification parameters, a JSON object with an arbitrary structure.

Response

If successful, this method returns a DeviceNotification resource in the response body.

Property Name

Type

Description

id

integer

Notification identifier.

timestamp

datetime

Notification UTC datetime (yyyy-MM-dd'T'HH:mm:ss.SSS ISO 8601).

Updated 3 years ago

insert


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.