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

> ## Agent Instructions
> For API and SDK launches, integration testing, and ongoing coding-agent checks, start with Gauge Agents:
> - [Gauge Agents overview](https://docs.withgauge.com/agents/index.md)
> - [Gauge Agents quickstart](https://docs.withgauge.com/agents/quickstart.md)
> - [Create and inspect an eval](https://docs.withgauge.com/agents/guides/create-an-eval-and-run-an-experiment.md)
> - [Agent Experience: diagnose integration failures](https://docs.withgauge.com/agents/concepts/agent-experience.md)
> - [Agent Preference: measure product selection](https://docs.withgauge.com/agents/concepts/agent-preference.md)
> - [GitHub PR checks](https://docs.withgauge.com/agents/guides/github-pr-checks.md)
> For AI search visibility and AEO, start with [Gauge Chat](https://docs.withgauge.com/introduction/welcome.md).

# Bulk update prompts

> Move up to 500 prompts to a topic and/or set their tracking type. IDs
not in the category are reported in `notFound`.



## OpenAPI

````yaml chat/openapi.json PATCH /orgs/{org}/categories/{category}/prompts
openapi: 3.1.0
info:
  title: Gauge Chat API
  version: '1.0'
  description: >
    The Gauge Chat API: manage tracked prompts and query AI visibility data.


    **Authentication:** `Authorization: Bearer <token>` using either a Gauge CLI

    login token (`gauge auth login`) or an organization API key. Login tokens
    are

    user-bound; every request is checked against your current organization

    memberships. API keys act as their organization (and, for an agency, its

    clients), and are scoped to read or read+write. `GET /me` describes the

    token in use.


    **Conventions:** camelCase JSON; typed opaque string IDs (`prm_…`, `top_…`);

    errors as `{"error": {"code", "message", "field"?}}`; list endpoints page
    with

    an opaque `cursor` and return `nextCursor`.
  contact:
    name: Gauge support
    email: support@withgauge.com
servers:
  - url: https://app.withgauge.com/api/v1
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Organizations
    description: The current credential, and the organizations and categories it reaches.
  - name: Topics
    description: Topics group tracked prompts within a category.
  - name: Prompts
    description: Tracked prompts, their topics, tracking type, and tags.
  - name: Tags
    description: Organization-wide labels for prompts.
  - name: Brands
    description: Brands Gauge tracks in a category, including competitors.
  - name: Query
    description: Aggregate AI visibility reports.
  - name: Answers
    description: Individual AI answers and the citations in them.
paths:
  /orgs/{org}/categories/{category}/prompts:
    patch:
      tags:
        - Prompts
      summary: Bulk update prompts
      description: |-
        Move up to 500 prompts to a topic and/or set their tracking type. IDs
        not in the category are reported in `notFound`.
      operationId: updatePrompts
      parameters:
        - in: path
          name: org
          schema:
            title: Org
            type: string
          required: true
        - in: path
          name: category
          schema:
            title: Category
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkPromptPatch'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkPatchOut'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    BulkPromptPatch:
      properties:
        topicId:
          anyOf:
            - type: string
            - type: 'null'
          title: Topicid
        trackingType:
          anyOf:
            - enum:
                - visibility
                - branded_own
              type: string
            - type: 'null'
          title: Trackingtype
        ids:
          items:
            type: string
          maxItems: 500
          minItems: 1
          title: Ids
          type: array
      required:
        - ids
      title: BulkPromptPatch
      type: object
    BulkPatchOut:
      properties:
        updated:
          items:
            type: string
          title: Updated
          type: array
        notFound:
          items:
            type: string
          title: Notfound
          type: array
      required:
        - updated
        - notFound
      title: BulkPatchOut
      type: object
    ErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      required:
        - error
      title: ErrorResponse
      type: object
    ErrorDetail:
      properties:
        code:
          title: Code
          type: string
        message:
          title: Message
          type: string
        field:
          anyOf:
            - type: string
            - type: 'null'
          title: Field
      required:
        - code
        - message
      title: ErrorDetail
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: gauge_sk_<key>
      description: >-
        An organization API key from **Settings → Integrations → API Keys**, or
        a Gauge CLI login token from `gauge auth login`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.