Create data delivery rule

Create a data delivery rule. The rule applies to every device in the account. Unless status is Disabled, Sensos starts delivering data that matches the rule's dataSourceType to the configured HTTP endpoint. The new rule takes effect within about 15 minutes.

Returns the created rule; the Location header contains its id.

Path Params
string
required

Unique identifier of the Sensos account.

Body Params

The data delivery rule to create.

A data delivery rule. Rules apply to every device in the account.

string
required

Descriptive name for the rule.

string

Optional human-readable description of the rule's purpose.

string
enum
Defaults to Enabled

Whether the rule delivers data. Defaults to Enabled when omitted.

Allowed:
string
enum
required

Type of data the rule delivers. Payload formats:

Allowed:
boolean

Applies only to DeviceReport rules. When true, device reports without a location fix are not delivered.

action
object
required

HTTP delivery action. Sensos sends each payload to url using method. Failed deliveries are retried as described in the retry policy.

Responses

401

The access token is missing, invalid or expired. Returned by the gateway with an empty body.

403

The caller has no permission for this operation or account. Returned by the gateway with an empty body.

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json