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
- 200
- 400
- 401
- 500
Rule upserted successfully (created or updated)
Schema validation failed (GEN000000), invalid JDM structure (BRE000001), or missing required name/jdm on create (BRE100004)
Missing or invalid bearer token (GEN022000)
Internal server error (GEN100000)