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

# Update brand and schedule

> Change a project's brand name, website, brand variants (replaces the list) or check schedule. Only the fields you send change. Days run 0 (Sunday) to 6, and the hour is in the workspace's timezone. Requires `visibility:write`.




## OpenAPI

````yaml /openapi.yaml patch /visibility/setup
openapi: 3.1.0
info:
  title: AeoNut API
  version: '1.0'
  description: >
    Read your workspace's AI visibility data for every project (brand) it
    tracks, and with the opt-in

    `visibility:write` scope change a project's prompts, categories,
    competitors, brand and schedule. Every response is wrapped in

    `{code, messages, data}`. Rates are fractions between 0 and 1 unless a field
    says otherwise.
servers:
  - url: https://services.aeonut.com/core/api/external/v1
security:
  - bearerAuth: []
  - apiKeyHeader: []
tags:
  - name: Me
  - name: Project
  - name: Workspace
  - name: AI visibility
  - name: Changes
paths:
  /visibility/setup:
    patch:
      tags:
        - Changes
      summary: Update brand and schedule
      description: >
        Change a project's brand name, website, brand variants (replaces the
        list) or check schedule. Only the fields you send change. Days run 0
        (Sunday) to 6, and the hour is in the workspace's timezone. Requires
        `visibility:write`.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - project_id
              properties:
                project_id:
                  type: string
                  format: uuid
                  description: Project ID from GET /projects
                brand_name:
                  type: string
                  maxLength: 255
                brand_domain:
                  type: string
                  maxLength: 255
                  description: Bare domain, no https:// and no path
                brand_variants:
                  type: array
                  maxItems: 50
                  items:
                    type: string
                    maxLength: 255
                schedule:
                  type: object
                  properties:
                    days:
                      type: array
                      minItems: 1
                      maxItems: 7
                      items:
                        type: integer
                        minimum: 0
                        maximum: 6
                    hour:
                      type:
                        - integer
                        - 'null'
                      minimum: 0
                      maximum: 23
      responses:
        '200':
          description: >-
            The project's settings after the change (brand name, domain,
            variants, schedule) plus `active_platforms`
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '422':
          $ref: '#/components/responses/ValidationError'
components:
  responses:
    Unauthorized:
      description: Missing (`code` 4021), invalid, revoked or expired (`code` 4022) API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Envelope'
          example:
            code: 4022
            messages: Invalid, revoked or expired API key.
            data: null
    Forbidden:
      description: The key lacks a required scope
      content:
        application/json:
          schema:
            allOf:
              - $ref: '#/components/schemas/Envelope'
              - properties:
                  data:
                    type: object
                    properties:
                      required:
                        type: array
                        items:
                          $ref: '#/components/schemas/Scope'
                      missing:
                        type: array
                        items:
                          $ref: '#/components/schemas/Scope'
          example:
            code: 4023
            messages: This API key does not have the scope required for this request.
            data:
              required:
                - visibility:read
              missing:
                - visibility:read
    ValidationError:
      description: Invalid parameters, or `project_id` missing or not a project ID
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Envelope'
          example:
            code: 422
            messages: project_id is required
            data:
              project_id:
                - project_id is required. Get ids from GET /projects.
  schemas:
    Envelope:
      type: object
      properties:
        code:
          type: integer
          description: AeoNut status code
        messages:
          type: string
        data: {}
    Scope:
      type: string
      enum:
        - workspace:read
        - visibility:read
        - visibility:write
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key, sent as `Authorization: Bearer YOUR_API_KEY`'
    apiKeyHeader:
      type: apiKey
      in: header
      name: X-API-KEY

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.