cURL
curl --request PATCH \ --url https://api.example.com/v1/rules/{rule_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "trigger_event": "<string>", "conditions": {}, "actions": [ {} ], "status": "<string>", "priority": 123, "stop_after_match": true, "identity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "assistant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "trigger_event": "<string>", "status": "<string>", "priority": 123, "stop_after_match": true, "conditions": {}, "actions": [ "<unknown>" ], "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "identity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "assistant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
Partially update a rule. Only provided fields are changed. Set status to ‘inactive’ to disable without deleting.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successful Response