---
title: "Set Email Preference"
method: PUT
path: "/api/alerts/email-preference"
tags: ["Vehicle Alerts"]
---

# Set Email Preference

`PUT /api/alerts/email-preference`

## Request

- Base URL: `https://pegarex.com.br` (the document declares no server; this is the origin it was published from)
- URL: `https://pegarex.com.br/api/alerts/email-preference`
- Auth: HTTP bearer

Turn the alert emails on or off from the alerts page. Emails only: the
alerts and their matches on the site are untouched either way.

## Request body

- EmailPreference
  - `alert_emails` boolean, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pegarex/apis/pegarex-api.md) · [All operations](https://skmtc.dev/pegarex/apis/pegarex-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pegarex/apis/pegarex-api/revisions/8c789c9bd72d?raw)
