PATCH
/
inbound
/
blocklist
/
{uuid}
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": "spam@example.com",
  "notes": "Updated spam account"
}'
{
  "success": true,
  "rule": {
    "uuid": "550e8400-e29b-41d4-a716-446655440000",
    "type": "from",
    "action": "block",
    "value": "spam@example.com",
    "notes": "Known spam sender",
    "last_modified": 1735689600
  }
}

Authorizations

Authorization
string
header
required

Enter your Bearer token in the format "Bearer {token}"

Path Parameters

uuid
string
required

UUID of the blocklist rule to update

Body

application/json
type
enum<string>

Type of blocklist rule

Available options:
from,
to,
subject,
body,
ip
action
enum<string>

Action to take when rule matches

Available options:
block,
quarantine
value
string

Value to match against (format depends on type)

notes
string

Optional notes about the rule

Maximum length: 64

Response

200
application/json
Rule updated successfully
success
boolean
Example:

true

rule
object