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

# Create Seo Fix Content Route

> S4's in-product Create Content submission (PR13).

Reuses ``TaskCreate`` -- the exact schema ``POST /tasks`` accepts -- and
mirrors that route's Task-construction + admin-visibility-gate + Redis
pipeline dispatch, so this behaves identically to the marketplace
wizard's ``/tasks/new`` path. Two additions only: the ``ai_seo_fixes``
entitlement gate (raises ``BiLimitExceeded`` -> HTTP 402 the frontend's
``BiPaywallDialog`` renders) runs BEFORE anything is persisted, and the
created Task is stamped ``is_bi_seo_fix_request=True`` so
``count_ai_seo_fixes_this_month`` counts only submissions that came
through here. ``BotIdGuard`` (the public ``/tasks`` route's bot defense)
is intentionally absent -- this route is authenticated, brand-scoped,
and already gated by the entitlement check, a different threat surface
than the anonymous-reachable marketplace form.



## OpenAPI

````yaml /openapi.json post /api/v1/brands/{brand_id}/dashboards/competitor-seo/create-content
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/brands/{brand_id}/dashboards/competitor-seo/create-content:
    post:
      tags:
        - Dashboards
        - Dashboards
      summary: Create Seo Fix Content Route
      description: |-
        S4's in-product Create Content submission (PR13).

        Reuses ``TaskCreate`` -- the exact schema ``POST /tasks`` accepts -- and
        mirrors that route's Task-construction + admin-visibility-gate + Redis
        pipeline dispatch, so this behaves identically to the marketplace
        wizard's ``/tasks/new`` path. Two additions only: the ``ai_seo_fixes``
        entitlement gate (raises ``BiLimitExceeded`` -> HTTP 402 the frontend's
        ``BiPaywallDialog`` renders) runs BEFORE anything is persisted, and the
        created Task is stamped ``is_bi_seo_fix_request=True`` so
        ``count_ai_seo_fixes_this_month`` counts only submissions that came
        through here. ``BotIdGuard`` (the public ``/tasks`` route's bot defense)
        is intentionally absent -- this route is authenticated, brand-scoped,
        and already gated by the entitlement check, a different threat surface
        than the anonymous-reachable marketplace form.
      operationId: >-
        create_seo_fix_content_route_api_v1_brands__brand_id__dashboards_competitor_seo_create_content_post
      parameters:
        - name: brand_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Brand Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TaskCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    TaskCreate:
      properties:
        title:
          anyOf:
            - type: string
              maxLength: 200
            - type: 'null'
          title: Title
        description:
          type: string
          maxLength: 5000
          title: Description
          default: ''
        category:
          type: string
          title: Category
          description: Task category from the taxonomy
        task_type:
          type: string
          title: Task Type
          description: Specific task type within category
        requirements:
          additionalProperties: true
          type: object
          title: Requirements
        budget_usd:
          type: number
          maximum: 300
          minimum: 3
          title: Budget Usd
        experimentation:
          type: number
          maximum: 1
          minimum: 0
          title: Experimentation
          default: 0.3
        brand_kit_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Brand Kit Id
      type: object
      required:
        - category
        - task_type
        - budget_usd
      title: TaskCreate
    TaskResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        user_id:
          type: string
          format: uuid
          title: User Id
        title:
          type: string
          title: Title
        description:
          type: string
          title: Description
        category:
          type: string
          title: Category
        task_type:
          type: string
          title: Task Type
        requirements:
          additionalProperties: true
          type: object
          title: Requirements
        budget_usd:
          type: number
          title: Budget Usd
        compute_budget:
          anyOf:
            - type: number
            - type: 'null'
          title: Compute Budget
        status:
          type: string
          title: Status
        experimentation:
          type: number
          title: Experimentation
        attachments:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Attachments
        brand_kit_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Brand Kit Id
        prototype_tier:
          anyOf:
            - type: integer
            - type: 'null'
          title: Prototype Tier
        created_at:
          type: string
          format: date-time
          title: Created At
        expires_at:
          type: string
          format: date-time
          title: Expires At
        payment_capture_before:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Payment Capture Before
        payment_authorization_expired_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Payment Authorization Expired At
      type: object
      required:
        - id
        - user_id
        - title
        - description
        - category
        - task_type
        - requirements
        - budget_usd
        - compute_budget
        - status
        - experimentation
        - created_at
        - expires_at
      title: TaskResponse
    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

````