Skip to content

Update EventRules

Request

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. For example, global rule 101 may require specific PARAM values as described in the Special Event Rules documentation. 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.

Security
bearerToken
Path
portfolioIdintegerrequired

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

Example:123456
countryCodestring, = 2 charactersrequired

The country of the rules to update: an upper-case ISO 3166-1 alpha-2 country code, or XX for the global rules.

Example:GB
Bodyapplication/jsonrequired

The rules to update. Send several rules in one request where you can; rules you don't send keep their current setting. Send global rules to XX and local rules to their country code. For each rule you send, include isActive and all of its parameters, as strings. Some rules, such as global rule 101, require specific PARAM values. Please refer to the Special Event Rules documentation for guidance on correct parameter usage.

Array [
ruleCodeintegerrequired

The ruleCode of the rule to update.

Example:101
isActiveintegerrequired

Whether the rule is switched on for the portfolio. 1 for on, 0 for off.

Example:1
param0string

Optional parameter used by some rules, sent as a string. Each rule type may use this property differently. For special event rules, consult the Special Event Rules documentation. For other rules, use the List Portfolio Event Rules endpoint to see available options.

Example:"1"
param1string

Optional parameter used by some rules, sent as a string. Each rule type may use this property differently. For special event rules, consult the Special Event Rules documentation. For other rules, use the List Portfolio Event Rules endpoint to see available options.

Example:"Any"
param2string

Optional parameter used by some rules, sent as a string. Each rule type may use this property differently. For special event rules, consult the Special Event Rules documentation. For other rules, use the List Portfolio Event Rules endpoint to see available options.

Example:"true"
]
curl -i -X PUT \
  https://connect.sandbox.creditsafe.com/v1/monitoring/portfolios/123456/eventRules/GB \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '[
    {
      "ruleCode": 1802,
      "isActive": 1,
      "param0": "10"
    },
    {
      "ruleCode": 1815,
      "isActive": 0
    }
  ]'

Responses

No Content. The rules were updated. There's no response body.

Response
No content