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

# Correct Ad Classification

> Apply an admin correction to a flagged ad's industry/theme/language.

A ``null`` field clears that column to NULL; a non-null value must be a slug
in the stored vocabulary (400 otherwise). Saving empties ``needs_review`` so
the ad leaves the queue and stamps an audit ``review`` block.



## OpenAPI

````yaml /openapi.json post /api/v1/admin/integrations/meta-ad-library/classification-review/correct
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/admin/integrations/meta-ad-library/classification-review/correct:
    post:
      tags:
        - Admin
      summary: Correct Ad Classification
      description: >-
        Apply an admin correction to a flagged ad's industry/theme/language.


        A ``null`` field clears that column to NULL; a non-null value must be a
        slug

        in the stored vocabulary (400 otherwise). Saving empties
        ``needs_review`` so

        the ad leaves the queue and stamps an audit ``review`` block.
      operationId: >-
        correct_ad_classification_api_v1_admin_integrations_meta_ad_library_classification_review_correct_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AdminAdClassificationCorrectRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AdminAdClassificationCorrectResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    AdminAdClassificationCorrectRequest:
      properties:
        ad_id:
          type: string
          format: uuid
          title: Ad Id
        industry:
          anyOf:
            - type: string
            - type: 'null'
          title: Industry
        theme:
          anyOf:
            - type: string
            - type: 'null'
          title: Theme
        language:
          anyOf:
            - type: string
            - type: 'null'
          title: Language
      type: object
      required:
        - ad_id
      title: AdminAdClassificationCorrectRequest
    AdminAdClassificationCorrectResponse:
      properties:
        ad_id:
          type: string
          format: uuid
          title: Ad Id
        industry:
          anyOf:
            - type: string
            - type: 'null'
          title: Industry
        theme:
          anyOf:
            - type: string
            - type: 'null'
          title: Theme
        language:
          anyOf:
            - type: string
            - type: 'null'
          title: Language
        industry_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Industry Label
        theme_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Theme Label
        language_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Language Label
        reviewed_at:
          type: string
          format: date-time
          title: Reviewed At
      type: object
      required:
        - ad_id
        - reviewed_at
      title: AdminAdClassificationCorrectResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````