Update Rule
update_rulePartially update an IoT rule by modifying only the fields you specify, such as conditions, notifications, or tags, while leaving others unchanged.
Instructions
Partially update a rule. Only the fields provided are changed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"rule_id": "<rule_id>"
},
"name": "update_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name. | |
| tags | No | ||
| rule_id | Yes | Rule ID. | |
| severity | No | ||
| conditions | No | Replace the rule's conditions. | |
| description | No | New description. | |
| processable | No | ||
| notification | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| tags | No | ||
| status | No | ||
| severity | No | ||
| createdAt | No | ||
| deletedAt | No | ||
| updatedAt | No | ||
| conditions | Yes | ||
| description | No | ||
| processable | No | ||
| notification | No |