cURL
curl --request PATCH \ --url https://api.jetemail.com/inbound/blocklist/{uuid} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "type": "from", "action": "block", "value": "[email protected]", "notes": "Updated spam account" } '
{ "success": true, "rule": { "uuid": "550e8400-e29b-41d4-a716-446655440000", "type": "from", "action": "block", "value": "[email protected]", "notes": "Known spam sender", "last_modified": 1735689600 } }
Updates an existing blocklist rule
Enter your Bearer token in the format "Bearer {token}"
UUID of the blocklist rule to update
Type of blocklist rule
from
to
subject
body
ip
Action to take when rule matches
block
quarantine
Value to match against (format depends on type)
Optional notes about the rule
64
Rule updated successfully
true
Show child attributes
"550e8400-e29b-41d4-a716-446655440000"
"from"
"block"
"[email protected]"
"Known spam sender"
1735689600