> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runflow.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Prompt

> Update a tenant-specific prompt (cannot update global prompts)



## OpenAPI

````yaml /api-reference/openapi.json patch /api/v1/runtime/v1/prompts/{nameOrId}
openapi: 3.0.0
info:
  title: Runflow Runtime API
  description: >-
    Programmatic surface for the Runflow platform — used by the SDK, the CLI,
    the execution engine, and any server-to-server caller. Authenticate with an
    `x-api-key` header (or `Authorization: Bearer ...`).
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.runflow.ai
    description: Production
  - url: http://localhost:3000
    description: Local development
security: []
tags: []
paths:
  /api/v1/runtime/v1/prompts/{nameOrId}:
    patch:
      tags:
        - Runtime API - Prompts
      summary: Update Prompt
      description: Update a tenant-specific prompt (cannot update global prompts)
      operationId: RuntimePromptsController_updatePrompt
      parameters:
        - name: nameOrId
          required: true
          in: path
          description: Prompt name or UUID
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                content:
                  type: string
                metadata:
                  type: object
      responses:
        '200':
          description: '{ success, data: <Prompt> } on success.'
        '401':
          description: Missing or invalid API key.
      security:
        - bearer: []
components: {}

````