---
title: "Apply Set"
method: POST
path: "/api/prompts/wizard/apply-set"
tags: ["prompt-wizard", "prompt-wizard"]
---

# Apply Set

`POST /api/prompts/wizard/apply-set`

## 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/prompts/wizard/apply-set`
- Auth: none declared

Save generated prompts to DB. Supports dry_run mode.

Upserts by (workspace_id, key) — idempotent on double-click.

## Request body

- ApplySetRequest
  - `prompts` ApplyPrompt[], required
    - `key` string, required
    - `name` string, required
    - `description` string, nullable
    - `prompt_text` string, required
    - `tags` string[]
    - `advanced_settings` object, nullable
    - `when_to_use` string, nullable
    - `auto_reply_rules` string, nullable
  - `set_dm_prompt_mode` string, nullable
  - `dry_run` boolean

## Response `200`

Successful Response

- unknown

## 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)
