---
title: "Sets the language of the caller's transactional emails."
method: PATCH
path: "/api/users/me/locale"
tags: ["account"]
---

# Sets the language of the caller's transactional emails.

`PATCH /api/users/me/locale`

## Request

- Base URL: `https://api.pricklymails.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pricklymails.com/api/users/me/locale`
- Auth: HTTP bearer

## Request body

- ChangeLocaleRequest: Request body for `PATCH /api/users/me/locale`.
  - `locale` string, required: The language of the caller's emails (`"en"` or `"fr"`).

## Response `204`

Language stored.

## Other responses

- `400`: Unsupported language (`change_locale.invalid_locale`).
- `401`: Missing or invalid JWT.
- `404`: The caller's account no longer exists.

---

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