Create a new rule for the user.
The rule will be added to the end of the rules list.
cURL
curl --request POST \ --url https://api.zo.computer/rules/ \ --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_...)
When this rule applies (e.g., 'When user asks about coding')
2000
What Zo should do when the condition is met
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