Skip to main content

Create Event Rule

POST 

/organizations/:organizationId/event-rules

Create new event rule

Request

Path Parameters

    organizationId stringrequired

    The ID of organization.

Body

required
    name stringrequired

    The name of event rule.

    description string

    The description of event rule.

    stage stringrequired

    The stage of event rule.

    expression string

    The expression of event rule.

    conditions object[]

    The conditions of event rule.

  • Array [
  • ]
  • devices string[]

    The devices of event rule.

    period objectrequired

    The period of event rule.

    actions object[]required

    The actions of event rule.

  • Array [
  • ]
  • hashtags string[]

    The hashtags of event rule.

    status stringrequired

    The status of event rule.

Responses

Schema
    data objectrequired

    Data of the event rule.

    name stringrequired
    description stringrequired
    stage stringrequired
    status stringrequired
    targetName stringrequired
    expression stringrequired
    hashtags string[]required
    conditions object[]required
  • Array [
  • assetId stringrequired
    property stringrequired
    symbol stringrequired
    valueDataType stringrequired
    value stringrequired
    operator stringrequired
  • ]
  • devices string[]required
    period objectrequired
    startTime objectrequired
    endTime objectrequired
    dayOfWeek string[]required
    dayOfMonth number[]required
    actions object[]required
  • Array [
  • type stringrequired
    parameters objectrequired
  • ]
  • createdBy stringrequired
    createdAtDateString stringrequired
    createdAt numberrequired
Loading...