Skip to content
Skip to main content
PUT
https://api.us.nylas.com/v3/rules/{rule_id}

Update a rule

Updates the specified rule. All fields are optional — only provided fields are updated. The same validation rules apply as on create.

Works with an API key or an IAM API key with the rules.update permission.

Parameters

Path parameters

rule_id*string

The ID of the rule to access.

Request body

namestring
Example: "Block spam domains (updated)"
descriptionstring
priorityinteger
min: 0max: 1000
enabledboolean
triggerstring

The trigger the rule listens for. Inbound rules accept only from.* conditions. Outbound rules accept from.*, recipient.*, and outbound.type.

inboundoutbound
matchobject
actionsarray<object>

Responses

request_idstring

ID of the request.

Example: "5fa64c92-e840-4357-86b9-2aa364d35b88"
dataobject
PUThttps://api.us.nylas.com/v3/rules/{rule_id}

Find your API key in the Nylas Dashboard under API Keys in your application settings.

rule_idrequiredstring

The ID of the rule to access.

Loading editor...

Autocomplete and validation come from this endpoint's request schema.