Skip to main content
POST
Set alert rules

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

FlowClient Credentials
Token URL
https://api.notifense.com/v1/auth/token

Path Parameters

accountId
string<uuid>
required
assetId
string<uuid>
required
eventType
required

Body

application/json
recipient
object
required
channel
object
required
isDisabled
null | boolean

Indicates whether this alert rule is disabled, or null to disable this filter.

daysOfWeek
null | integer[]

The days of the week on which this alert rule is active, or null to disable this filter.

timeOfDay
null | object

The times of the day during which this alert rule is active, or null to disable this filter. Range may cross midnight (e.g. from 22:00 to 06:00).

dates
null | object

The dates between which this alert rule is active, or null to disable this filter.

insideGeofences
null | string<uuid>[]

The geofences in any of which the asset must be for the alert rule to be active, or null to disable this filter.

outsideGeofences
null | string<uuid>[]

The geofences outside all of which the asset must be for the alert rule to be active, or null to disable this filter.

Response

No Content