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

# Update a report brand profile



## OpenAPI

````yaml /openapi.public.json patch /v1/report-brand-profiles/{id}
openapi: 3.1.0
info:
  title: AstroM8 Public API
  version: 1.1.0
  description: >-
    Astrology calculations, reports, customer delivery, and enterprise
    workflows. Each operation declares whether it uses an API key or a customer
    session bearer token.
servers:
  - url: https://api.astrom8.com
    description: Production
security: []
tags:
  - name: Western
    description: Natal, relationship, return, progression, and transit calculations.
  - name: Vedic
    description: Lahiri sidereal Vedic calculations, matching, timing, and remedies.
  - name: Thai Astrology
    description: Thai calendar, auspicious timing, lunar, festival, and wheel tools.
  - name: Chinese & Korean
    description: BaZi, Qi Men Dun Jia, and Saju calculations.
  - name: Horoscopes
    description: Published daily and range horoscope content.
  - name: Reports
    description: Branded report generation and asynchronous job polling.
  - name: Tarot & Numerology
    description: Tarot spreads and Pythagorean numerology.
  - name: Uranian
    description: Uranian charts, midpoints, and planetary pictures.
  - name: Developer workflow
    description: Preflight capability eligibility and credit estimates.
  - name: Customer reports
    description: Session-authenticated report jobs and reusable brand profiles.
  - name: Customer delivery
    description: Session-authenticated webhooks and scheduled horoscope delivery.
  - name: Cultural Intelligence
    description: >-
      Enterprise API-key workflows for encrypted profiles, teams, and campaign
      content.
paths:
  /v1/report-brand-profiles/{id}:
    patch:
      tags:
        - Customer reports
      summary: Update a report brand profile
      operationId: updateReportBrandProfile
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            pattern: ^brand_[a-f0-9]{24}$
            description: Brand profile id.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 80
                branding:
                  $ref: '#/components/schemas/PdfBranding'
      responses:
        '200':
          description: Updated profile.
          content:
            application/json:
              schema:
                type: object
                properties:
                  profile:
                    type: object
                    properties:
                      id:
                        type: string
                        pattern: ^brand_[a-f0-9]{24}$
                        description: Brand profile id.
                      name:
                        type: string
                        maxLength: 80
                      branding:
                        $ref: '#/components/schemas/PdfBranding'
                      created_at:
                        type:
                          - string
                          - 'null'
                        format: date-time
                      updated_at:
                        type:
                          - string
                          - 'null'
                        format: date-time
                    required:
                      - id
                      - name
                      - branding
                required:
                  - profile
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Profile is not owned by this customer.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JsonError'
      security:
        - SessionBearerAuth: []
components:
  schemas:
    PdfBranding:
      allOf:
        - $ref: '#/components/schemas/WhiteLabelBrandFields'
        - type: object
          description: >-
            Visual white-label branding rendered into the PDF (logo, color) in
            addition to the LLM voice controls.
          properties:
            logo_url:
              type: string
              format: uri
              maxLength: 500
              description: Must be an https URL.
            primary_color:
              type: string
              pattern: ^#[0-9a-fA-F]{6}$
              examples:
                - '#7c3aed'
            contact_email:
              type: string
              format: email
              maxLength: 200
              description: Shown in the report footer, e.g. "hello@moonpath.app".
            contact_phone:
              type: string
              maxLength: 40
              description: >-
                Shown in the report footer. Free-form — international phone
                formats vary.
              examples:
                - +66 2 123 4567
            contact_url:
              type: string
              format: uri
              maxLength: 300
              description: >-
                Must be an https URL. Shown in the footer in place of the
                default astrom8.com link.
              examples:
                - https://moonpath.app
    JsonError:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
          description: >-
            Stable slug (e.g. unauthorized, payment_required,
            internal_server_error).
        message:
          type: string
          description: Human-readable message safe for clients.
        code:
          type: string
          description: Optional provider-specific code.
        request_id:
          type: string
          description: Correlation id when middleware sets it.
    WhiteLabelBrandFields:
      type: object
      description: >-
        Optional white-label AI voice controls for endpoints that generate LLM
        interpretation text.
      properties:
        brand_name:
          type: string
          minLength: 1
          maxLength: 60
          examples:
            - Moon & Co
        tone:
          type: string
          enum:
            - professional
            - casual
            - mystical
            - playful
            - formal
        audience:
          type: string
          enum:
            - consumer
            - employee
            - manager
            - customer
            - community
        safety_mode:
          type: string
          enum:
            - default
            - workplace
            - financial_wellness
            - entertainment
  responses:
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/JsonError'
          example:
            error: unauthorized
            message: Invalid API key
            code: '401'
            request_id: 01HQXYZ...
  securitySchemes:
    SessionBearerAuth:
      type: http
      scheme: bearer
      bearerFormat: astrom8_sess_*
      description: >-
        Customer session token returned by /auth/login. This is distinct from an
        API key.

````