Update an existing rule.
Only the fields provided in the request will be updated.
cURL
curl --request PUT \ --url https://api.zo.computer/rules/{rule_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "condition": "<string>", "instruction": "<string>" } '
{ "id": "<string>", "condition": "<string>", "instruction": "<string>", "created_at": "<string>", "updated_at": "<string>" }
Zo API key (zo_sk_...)
New condition for when this rule applies
2000
New instruction for what Zo should do
10000
Successful Response
Unique rule identifier
When this rule applies
What Zo does when the condition is met
ISO 8601 creation timestamp
ISO 8601 last update timestamp