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

# Update Prompt

> Update an existing prompt



## OpenAPI

````yaml /public-apis/openapi/prompts.json put /v1/prompts
openapi: 3.0.0
info:
  version: 1.0.0
  contact:
    name: Maxim Engineering
    email: eng@getmaxim.ai
  title: Maxim SDK API - prompts
  description: API documentation for Maxim SDK prompts endpoints
servers:
  - url: https://api.getmaxim.ai
security: []
paths:
  /v1/prompts:
    put:
      tags:
        - Prompt
      summary: Update Prompt
      description: Update an existing prompt
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                workspaceId:
                  type: string
                  description: Unique identifier for the workspace
                id:
                  type: string
                  description: Unique identifier for the prompt
                name:
                  type: string
                  description: Name of the prompt
                description:
                  type: string
                  description: Description of the prompt
                folderId:
                  type: string
                  nullable: true
                  description: Unique identifier for the folder
              required:
                - workspaceId
                - id
      responses:
        '200':
          description: Prompt updated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                      description:
                        type: string
                      workspaceId:
                        type: string
                      accountId:
                        type: string
                      folderId:
                        type: string
                        nullable: true
                      meta:
                        nullable: true
                      createdById:
                        type: string
                      createdAt:
                        type: string
                      updatedAt:
                        type: string
                      deletedAt:
                        type: string
                        nullable: true
                      deploymentHistory:
                        type: object
                        properties:
                          id:
                            type: string
                          workspaceId:
                            type: string
                          accountId:
                            type: string
                          promptId:
                            type: string
                          strategy:
                            type: object
                            properties:
                              type:
                                type: string
                              config:
                                type: object
                                additionalProperties:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                      rules:
                                        type: object
                                        properties:
                                          query:
                                            type: object
                                            properties:
                                              not:
                                                type: boolean
                                              rules:
                                                type: array
                                                items:
                                                  type: object
                                                  properties:
                                                    field:
                                                      type: string
                                                    value:
                                                      type: string
                                                    operator:
                                                      type: string
                                                    valueSource:
                                                      type: string
                                                  required:
                                                    - field
                                                    - value
                                                    - operator
                                                    - valueSource
                                              combinator:
                                                type: string
                                            required:
                                              - not
                                              - rules
                                              - combinator
                                          version:
                                            type: number
                                        required:
                                          - query
                                          - version
                                      timestamp:
                                        type: string
                                    required:
                                      - id
                                      - rules
                                      - timestamp
                            required:
                              - type
                              - config
                          createdAt:
                            type: string
                          updatedAt:
                            type: string
                          deletedAt:
                            type: string
                            nullable: true
                        required:
                          - id
                          - workspaceId
                          - accountId
                          - promptId
                          - strategy
                          - createdAt
                          - updatedAt
                          - deletedAt
                    required:
                      - id
                      - name
                      - description
                      - workspaceId
                      - accountId
                      - folderId
                      - createdById
                      - createdAt
                      - updatedAt
                      - deletedAt
                      - deploymentHistory
                required:
                  - data
        '400':
          description: Invalid request parameters
        '401':
          description: Unauthorized
        '404':
          description: Prompt not found
      security:
        - ApiKeyAuth: []
      externalDocs:
        url: https://app.getmaxim.ai/docs/evaluate/concepts#prompts
        description: This API can be used to modify prompts.
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-maxim-api-key
      description: API key for authentication

````