---
title: "Update project settings"
method: PATCH
path: "/api/v1/projects/{projectId}"
tags: ["Projects"]
---

# Update project settings

`PATCH /api/v1/projects/{projectId}`

## Request

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

## Path parameters

- `projectId` integer, required

## Request body

- UpdateInputBody1
  - `default_locale` string
  - `name` string
  - `routing_policy` RoutingStepBody[]: Ordered fallback channels used when a verification omits channels
    - `channel` 'whatsapp_gateway' | 'telegram' | 'whatsapp_official', required
    - `wait_ms` integer, required: Milliseconds to wait for delivery before the next step
  - `sender_name` string
  - `telegram_bot_id` unknown

## Response `200`

OK

- ProjectBody
  - `created_at` string, date-time, required
  - `default_locale` string, required
  - `id` integer, required
  - `name` string, required
  - `routing_policy` RoutingStepBody[], nullable, required: Ordered channels tried with fallback when a verification omits channels
    - `channel` 'whatsapp_gateway' | 'telegram' | 'whatsapp_official', required
    - `wait_ms` integer, required: Milliseconds to wait for delivery before the next step
  - `sender_name` string, required
  - `telegram_bot_id` string, nullable, required: Bot that carries Telegram codes, null for the shared OTP Run bot
  - `updated_at` string, date-time, required
  - `workspace_id` integer, 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)
