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

# Toggle Prompt Status

> Toggles a prompt between active (Y) and inactive (N).



## OpenAPI

````yaml PATCH /prompt
openapi: 3.1.0
info:
  title: OpenAPI Plant Store
  description: >-
    A sample API that uses a plant store as an example to demonstrate features
    in the OpenAPI specification
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://app.mentionpilot.ai/api/v1
security:
  - bearerAuth: []
paths:
  /prompt:
    patch:
      summary: Toggle Prompt Status
      description: Toggles a prompt between active (Y) and inactive (N).
      requestBody:
        description: Prompt to toggle
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - prompt_id
              properties:
                prompt_id:
                  type: integer
                  description: ID of the prompt to toggle
                  example: 42
            example:
              prompt_id: 42
      responses:
        '200':
          description: Prompt status toggled successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  prompt_id:
                    type: integer
                    example: 42
                  active:
                    type: string
                    enum:
                      - 'Y'
                      - 'N'
                    description: New active status after toggle
                    example: 'N'
              example:
                success: true
                prompt_id: 42
                active: 'N'
        '400':
          description: Validation error — missing or invalid prompt_id
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                error: prompt_id is required
        '401':
          description: Unauthorized — invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden — brand-scoped API key cannot access this prompt
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                error: Access denied
        '404':
          description: Prompt not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                error: Prompt not found
components:
  schemas:
    Error:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
          example: An error occurred
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````