---
title: "Update Prompt"
method: PUT
path: "/api/strategy/prompts/{state}"
tags: ["strategy", "strategy"]
---

# Update Prompt

`PUT /api/strategy/prompts/{state}`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/strategy/prompts/{state}`
- Auth: none declared

Update prompt template for a state.

Creates user override if none exists.

## Path parameters

- `state` string, required

## Request body

- SrcApiStrategyUpdatePromptRequest: Request to update a prompt.
  - `outbound_prompt` string, nullable: Prompt for outbound messages
  - `reply_prompt` string, nullable: Prompt for reply messages
  - `tone` string, nullable: Tone: curious, friendly, professional, casual, warm, neutral
  - `max_words` integer, nullable: Word limit (10-200)
  - `language` string, nullable: Language code: ru, en, or null for auto
  - `reply_mode` string, nullable: Reply mode: off, draft, send
  - `cooldown_minutes` number, nullable: Cooldown between replies (0-60 min)
  - `outbound_mode` string, nullable: Outbound mode: off, draft, send
  - `max_replies_per_day` integer, nullable: Max auto-replies per day (1-100)

## Response `200`

Successful Response

- SrcApiStrategyPromptResponse: Prompt template response.
  - `state` string, required
  - `outbound_prompt` string, required
  - `reply_prompt` string, required
  - `tone` string, required
  - `max_words` integer, required
  - `language` string, nullable, required
  - `is_custom` boolean, required
  - `reply_mode` string
  - `cooldown_minutes` number
  - `outbound_mode` string
  - `max_replies_per_day` integer

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
