---
title: "Update Prompt"
method: POST
path: "/v1/prompts/update"
tags: ["prompts"]
---

# Update Prompt

`POST /v1/prompts/update`

## Query parameters

- `id` string, uuid, required

## Request body

- PromptUpdateParams
  - `content` union
    - string
    - Undefined
  - `collect_fields` union
    - CollectField[]
      - `field_type` 'field_type_email', required
      - `label` string, required
      - `name` string, required
      - `description` string, nullable
    - Undefined
  - `context_endpoint` union
    - string
    - Undefined
  - `prompt_template` union
    - string, uuid
    - PromptTemplate
      - `id` string, uuid, required
      - `user_id` string, uuid, required
      - `label` string
      - `required_context_keys` string[], required
    - Undefined

## Response `200`

Successful Response

- Prompt
  - `id` string, uuid, required
  - `user_id` string, uuid, required
  - `content` string
  - `collect_fields` CollectField[], nullable
    - `field_type` 'field_type_email', required
    - `label` string, required
    - `name` string, required
    - `description` string, nullable
  - `context_endpoint` string, nullable
  - `prompt_template` PromptTemplate
    - `id` string, uuid, required
    - `user_id` string, uuid, required
    - `label` string
    - `required_context_keys` string[], required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/vocodedev/apis/vocode-hosted-api.md) · [All operations](https://skmtc.net/vocodedev/apis/vocode-hosted-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vocodedev/vocode-hosted-api/revisions/ffca17c004e2/schema)
