> ## 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.

# Edit Review Response Draft Route

> Save a user's edit into ``edited_text``; flips ``status`` to ``edited``.

Authorization: ``_get_brand_or_404`` proves brand ownership; the draft's
own ``brand_id`` FK (checked inside the service) is the anchor that
proves this draft belongs to that brand — no second advertiser
resolution is needed, since the row could only have been created via
the own-brand-gated create route above.



## OpenAPI

````yaml /openapi.json patch /api/v1/brands/{brand_id}/brand-intelligence/reviews/drafts/{draft_id}
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/brands/{brand_id}/brand-intelligence/reviews/drafts/{draft_id}:
    patch:
      tags:
        - Brand Reviews
        - Brand Reviews
      summary: Edit Review Response Draft Route
      description: |-
        Save a user's edit into ``edited_text``; flips ``status`` to ``edited``.

        Authorization: ``_get_brand_or_404`` proves brand ownership; the draft's
        own ``brand_id`` FK (checked inside the service) is the anchor that
        proves this draft belongs to that brand — no second advertiser
        resolution is needed, since the row could only have been created via
        the own-brand-gated create route above.
      operationId: >-
        edit_review_response_draft_route_api_v1_brands__brand_id__brand_intelligence_reviews_drafts__draft_id__patch
      parameters:
        - name: brand_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Brand Id
        - name: draft_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Draft Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BrandReviewResponseDraftEditRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrandReviewResponseDraftItem'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    BrandReviewResponseDraftEditRequest:
      properties:
        edited_text:
          type: string
          maxLength: 5000
          minLength: 1
          title: Edited Text
      type: object
      required:
        - edited_text
      title: BrandReviewResponseDraftEditRequest
      description: PATCH body — save the user's edit into ``edited_text``.
    BrandReviewResponseDraftItem:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        review_id:
          type: string
          format: uuid
          title: Review Id
        brand_id:
          type: string
          format: uuid
          title: Brand Id
        model:
          type: string
          title: Model
        draft_text:
          type: string
          title: Draft Text
        edited_text:
          anyOf:
            - type: string
            - type: 'null'
          title: Edited Text
        status:
          type: string
          enum:
            - draft
            - edited
            - copied
            - dismissed
          title: Status
        copied_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Copied At
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - review_id
        - brand_id
        - model
        - draft_text
        - status
        - created_at
        - updated_at
      title: BrandReviewResponseDraftItem
      description: One AI-drafted reply, as served to every consuming surface.
    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

````