Update EventRules

Endpoint to update an eventRule in a portfolio. Must provide a portfolio unique identifier and a country code in the URL of the PUT request. The Body of the request must contain the ruleCode number of the eventRule you want to update, with an isActive parameter. Some event rules may also contain specific parameters, which can be set with param0, param1 and param2. parameters. Get the above information by calling the List All eventRules endpoint.

Important Note
It is recommended that any changes made to the Event Rules are verified using the List Portfolio Event Rules Endpoint after the PUT call has been made.

SecuritybearerToken
Request
path Parameters
portfolioId
required
number

The unique identifier of the portfolio, obtained from /portfolios.

countryCode
required
string = 2 characters

Country code to show events for

Request Body schema: application/json
required

To ensure optimal processing efficiency when updating live event rules—whether for removal, addition, or status change—it is best practice to update the entire list of rules in a single operation.

Array
ruleCode
required
integer

The unique ID of the EventRule

isActive
required
integer

Flag to show if EventRule is active or not. 0 for false, 1 for true.

string or integer
string or integer
string or integer
Responses
204

No Content

400
401
404
put/monitoring/portfolios/{portfolioId}/eventRules/{countryCode}
Request samples
application/json
[
  • {
    },
  • {
    },
  • {
    }
]
Response samples
application/json
{
  • "message": "string"
}