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

# Bulk-edit prompts (move topic / soft delete / reactivate)

> Each update targets a (prompt_id, region_id) pair across all its provider varieties. Reactivations are limit-enforced (422 rolls back). Response data aligns with the request order: [{index, success}].



## OpenAPI

````yaml /api-reference/openapi.json patch /api/v2/brands/{brand_id}/prompts
openapi: 3.0.1
info:
  title: Cognizo Public API
  version: v1
  description: >-
    Public REST API for Cognizo. Authenticate with an API key via the
    `X-API-KEY` header.
servers:
  - url: https://core.cognizo.ai
security:
  - apiKey: []
paths:
  /api/v2/brands/{brand_id}/prompts:
    parameters:
      - name: brand_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
    patch:
      tags:
        - Prompts
      summary: Bulk-edit prompts (move topic / soft delete / reactivate)
      description: >-
        Each update targets a (prompt_id, region_id) pair across all its
        provider varieties. Reactivations are limit-enforced (422 rolls back).
        Response data aligns with the request order: [{index, success}].
      operationId: update_brand_prompts
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                updates:
                  type: array
                  items:
                    type: object
                    properties:
                      prompt_id:
                        type: string
                        format: uuid
                      region_id:
                        type: string
                        format: uuid
                      topic_name:
                        type: string
                        nullable: true
                      is_deleted:
                        type: boolean
                        nullable: true
                    required:
                      - prompt_id
                      - region_id
              required:
                - updates
      responses:
        '200':
          description: updates applied
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        index:
                          type: integer
                        success:
                          type: boolean
                      required:
                        - index
                        - success
                required:
                  - data
        '422':
          description: missing fields or limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '500':
          description: unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
components:
  schemas:
    error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            details:
              type: array
              items:
                $ref: '#/components/schemas/error_detail'
          required:
            - code
            - message
      required:
        - error
    error_detail:
      type: object
      properties:
        field:
          type: string
          nullable: true
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
        - field
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-KEY

````