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

Update a policy

Updates the specified policy. All fields are optional — only provided fields are updated. The same plan-limit, spam sensitivity, and retention-period validation applies as on create.

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

Parameters

Path parameters

policy_id*string

The ID of the policy to access.

Request body

namestring
Example: "Updated policy name"
minLength: 1maxLength: 256
limitsobject

Each value must be within your plan's maximum. limit_storage_total, limit_count_daily_message_received, limit_count_daily_email_sent, limit_inbox_retention_period, and limit_spam_retention_period accept -1 for unlimited when your plan sets no limit for that field. If your plan sets a limit, -1 returns a 400 error.

rulesarray<string>
Example: ["c1d2e3f4-5678-4abc-9def-0123456789ab"]
spam_detectionobject

Responses

request_idstring

ID of the request.

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

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

policy_idrequiredstring

The ID of the policy to access.

Loading editor...

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