Skip to content

Create or update a rule

PUT
/resources/rules/{ruleId}

No If-Match header: create only (409 if exists).
If-Match with ETag: update with concurrency check (412 on mismatch).
If-Match: *: upsert (for CLI/manifest apply).

Parameters

Path Parameters

ruleId*
Type
string
Required

Request Body

JSON
{
  
"label": "string",
  
"activeFrom": "string",
  
"activeTo": "string",
  
"components": [
  
  
{
  
  
  
"componentId": "string",
  
  
  
"parameters": {
  
  
  
  
"additionalProperties": null
  
  
  
}
  
  
}
  
]
}

Responses

OK

JSON
{
  
"ruleId": "string",
  
"label": "string",
  
"activeFrom": "string",
  
"activeTo": "string",
  
"components": [
  
  
{
  
  
  
"componentId": "string",
  
  
  
"parameters": {
  
  
  
  
"additionalProperties": null
  
  
  
}
  
  
}
  
],
  
"eTag": "string"
}

Samples

© 2024 Hantera AB. All rights reserved.