---
title: "Override OTP texts for a locale"
method: PUT
path: "/api/v1/projects/{projectId}/templates/{locale}"
tags: ["Templates"]
---

# Override OTP texts for a locale

`PUT /api/v1/projects/{projectId}/templates/{locale}`

## Request

- Base URL: `https://otprun.com`
- URL: `https://otprun.com/api/v1/projects/{projectId}/templates/{locale}`
- Auth: HTTP bearer

## Path parameters

- `projectId` integer, required
- `locale` string, required

## Request body

- PutInputBody
  - `variants` string[], nullable, required: Each text must contain {code}; {app} and {minutes} are optional; \n breaks a line

## Response `200`

OK

- TemplateBody
  - `locale` string, required
  - `source` 'default' | 'custom', required
  - `variants` string[], nullable, required

## Other responses

- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/otprun/apis/otp-run-api.md) · [All operations](https://skmtc.dev/otprun/apis/otp-run-api/llms.txt) · [OpenAPI document](https://skmtc.dev/otprun/apis/otp-run-api/revisions/43d40d5f4050?raw)
