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

# Update prompt



## OpenAPI

````yaml /openapi.yaml patch /domains/{domainId}/prompts/{promptId}
openapi: 3.1.0
info:
  title: Mentionpath API
  version: 1.0.0
  description: >
    Programmatic access to Mentionpath workspace data and actions.


    The REST API mirrors the MCP tool surface. Reads return immediately.
    Mutations may return

    `202` with `APPROVAL_REQUIRED` when invoked with a token that requires human
    approval.


    Base URL: `https://api.mentionpath.ai/api/v1`
servers:
  - url: https://api.mentionpath.ai/api/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Domains
  - name: Prompts
  - name: Audits
  - name: Competitors
  - name: Visibility
  - name: Mentions
  - name: Traffic
  - name: Webflow
  - name: Approvals
paths:
  /domains/{domainId}/prompts/{promptId}:
    patch:
      tags:
        - Prompts
      summary: Update prompt
      operationId: updatePrompt
      parameters:
        - $ref: '#/components/parameters/domainId'
        - $ref: '#/components/parameters/promptId'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                title:
                  type: string
                locations:
                  type: string
                categoryType:
                  type: string
                  enum:
                    - commercial
                    - informational
                    - brand
                status:
                  type: string
                  enum:
                    - active
                    - archived
      responses:
        '200':
          description: Updated
        '202':
          description: Approval required
components:
  parameters:
    domainId:
      name: domainId
      in: path
      required: true
      schema:
        type: string
        format: uuid
    promptId:
      name: promptId
      in: path
      required: true
      schema:
        type: integer
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API token or OAuth access token from Account → API in the Mentionpath
        app.

````