Skip to main content

Update Event Rule

PUT 

/organizations/:organizationId/event-rules/:eventRuleId

Update event rule

Request

Path Parameters

    organizationId stringrequired

    The ID of organization.

    eventRuleId stringrequired

    The ID of event rule.

Body

required
    name stringrequired

    The name of event rule.

    description string

    The description 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 updated 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
    name stringrequired
    assetId stringrequired
    confirmed booleanrequired
    fPort numberrequired
    payload stringrequired
    payloadDataType stringrequired
  • ]
  • updatedBy stringrequired
    updatedAtDateString stringrequired
    updatedAt numberrequired
Loading...