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

# Generate Brand Guidelines

> Generate this brand's guidelines document (202 — runs off-request).

Reuses the stored document when the source inputs are unchanged, so a
double-click doesn't re-bill the model; `force=true` always starts a new
version.



## OpenAPI

````yaml /openapi.json post /api/v1/brands/{brand_id}/guidelines/generate
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/brands/{brand_id}/guidelines/generate:
    post:
      tags:
        - Brands
        - Brands
      summary: Generate Brand Guidelines
      description: |-
        Generate this brand's guidelines document (202 — runs off-request).

        Reuses the stored document when the source inputs are unchanged, so a
        double-click doesn't re-bill the model; `force=true` always starts a new
        version.
      operationId: >-
        generate_brand_guidelines_api_v1_brands__brand_id__guidelines_generate_post
      parameters:
        - name: brand_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Brand Id
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
                - $ref: '#/components/schemas/BrandGuidelinesGenerateRequest'
                - type: 'null'
              title: Payload
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrandGuidelinesDocument'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    BrandGuidelinesGenerateRequest:
      properties:
        force:
          type: boolean
          title: Force
          default: false
      type: object
      title: BrandGuidelinesGenerateRequest
      description: >-
        `force=True` is the Regenerate button — always starts a new version.


        Without it, a request whose source inputs are unchanged reuses the
        stored

        document instead of re-billing the model.
    BrandGuidelinesDocument:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        status:
          type: string
          title: Status
        version:
          type: integer
          title: Version
        summary:
          anyOf:
            - type: string
            - type: 'null'
          title: Summary
        guidelines:
          additionalProperties: true
          type: object
          title: Guidelines
        created_at:
          type: string
          format: date-time
          title: Created At
        completed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completed At
      type: object
      required:
        - id
        - status
        - version
        - created_at
      title: BrandGuidelinesDocument
    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

````