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

# Delete prompt categories

> Delete up to 100 categories. Their prompts are kept and become Uncategorized. Answers per item. Requires `visibility:write`.




## OpenAPI

````yaml /openapi.yaml delete /visibility/prompt-categories
openapi: 3.1.0
info:
  title: AeoNut API
  version: '1.0'
  description: >
    Read your workspace's AI visibility data for every project (brand) it
    tracks, and with the opt-in

    `visibility:write` scope change a project's prompts, categories,
    competitors, brand and schedule. Every response is wrapped in

    `{code, messages, data}`. Rates are fractions between 0 and 1 unless a field
    says otherwise.
servers:
  - url: https://services.aeonut.com/core/api/external/v1
security:
  - bearerAuth: []
  - apiKeyHeader: []
tags:
  - name: Me
  - name: Project
  - name: Workspace
  - name: AI visibility
  - name: Changes
paths:
  /visibility/prompt-categories:
    delete:
      tags:
        - Changes
      summary: Delete prompt categories
      description: >
        Delete up to 100 categories. Their prompts are kept and become
        Uncategorized. Answers per item. Requires `visibility:write`.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - project_id
                - ids
              properties:
                project_id:
                  type: string
                  format: uuid
                  description: Project ID from GET /projects
                ids:
                  type: array
                  minItems: 1
                  maxItems: 100
                  items:
                    type: string
                    format: uuid
      responses:
        '200':
          $ref: '#/components/responses/Batch'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '422':
          $ref: '#/components/responses/ValidationError'
components:
  responses:
    Batch:
      description: Per-item result. One bad item never stops the rest.
      content:
        application/json:
          schema:
            allOf:
              - $ref: '#/components/schemas/Envelope'
              - properties:
                  data:
                    type: object
                    properties:
                      succeeded:
                        type: array
                        items: {}
                      failed:
                        type: array
                        items:
                          type: object
                          properties:
                            index:
                              type: integer
                              description: Position in the request array
                            id:
                              type: string
                            message:
                              type: string
    Unauthorized:
      description: Missing (`code` 4021), invalid, revoked or expired (`code` 4022) API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Envelope'
          example:
            code: 4022
            messages: Invalid, revoked or expired API key.
            data: null
    Forbidden:
      description: The key lacks a required scope
      content:
        application/json:
          schema:
            allOf:
              - $ref: '#/components/schemas/Envelope'
              - properties:
                  data:
                    type: object
                    properties:
                      required:
                        type: array
                        items:
                          $ref: '#/components/schemas/Scope'
                      missing:
                        type: array
                        items:
                          $ref: '#/components/schemas/Scope'
          example:
            code: 4023
            messages: This API key does not have the scope required for this request.
            data:
              required:
                - visibility:read
              missing:
                - visibility:read
    ValidationError:
      description: Invalid parameters, or `project_id` missing or not a project ID
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Envelope'
          example:
            code: 422
            messages: project_id is required
            data:
              project_id:
                - project_id is required. Get ids from GET /projects.
  schemas:
    Envelope:
      type: object
      properties:
        code:
          type: integer
          description: AeoNut status code
        messages:
          type: string
        data: {}
    Scope:
      type: string
      enum:
        - workspace:read
        - visibility:read
        - visibility:write
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key, sent as `Authorization: Bearer YOUR_API_KEY`'
    apiKeyHeader:
      type: apiKey
      in: header
      name: X-API-KEY

````

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