Skip to main content

Upsert a rule

PUT 

/v1/rules/:ruleKey

Idempotent upsert. If the rule identified by ruleKey exists, its JDM definition and metadata are replaced and version is auto-incremented. If it does not exist, it is created at version: 1.

name and jdm are required on create; on update they are optional (only the supplied fields change). The cache entry for the rule is evicted on both create and update.

Request

Responses

Rule upserted successfully (created or updated)