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

# Apply a Brand Edit

> Make the proposed guidance and profile active. A stale edit cannot be applied. [Create a new edit](/api-reference/brands/create-a-brand-edit) from the current brand version.



## OpenAPI

````yaml https://www.rainbrand.com/api/v1/spec.json post /brands/{id}/edits/{editId}/apply
openapi: 3.1.1
info:
  title: Rainbrand API
  version: 1.0.0
servers:
  - url: https://www.rainbrand.com/api/v1
security:
  - apiKey: []
  - bearer: []
  - oauth: []
tags:
  - name: Feedback
    description: Report problems and observations about Rainbrand.
  - name: Uploads
    description: >-
      Stage private local files for brand sources, the Library, and other
      supported operations.
  - name: Account
    description: Check the connected account, accessible teams, and credit balances.
  - name: Brands
    description: Manage brands and brand identity.
  - name: Library
    description: Add, list, and remove a brand's images, video, and audio.
  - name: Images
    description: Retrieve and manage images.
  - name: Videos
    description: Retrieve and manage video files.
  - name: Audio
    description: Retrieve and manage audio files.
  - name: Briefs
    description: Get brand guidance and selected assets for a specific task.
  - name: Models
    description: Find available models and check their inputs.
  - name: Generations
    description: Create and retrieve model generations.
  - name: Reviews
    description: >-
      Check an asset against a brand's color, typography, logo, and copy
      guidance.
paths:
  /brands/{id}/edits/{editId}/apply:
    post:
      tags:
        - Brands
      summary: Apply a Brand Edit
      description: >-
        Make the proposed guidance and profile active. A stale edit cannot be
        applied. [Create a new edit](/api-reference/brands/create-a-brand-edit)
        from the current brand version.
      operationId: brands.applyEdit
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            description: Brand ID
            example: e6220a5e-4a68-4d39-8bb9-5105e9a3a164
          example: e6220a5e-4a68-4d39-8bb9-5105e9a3a164
        - name: editId
          in: path
          required: true
          schema:
            type: string
            format: uuid
            description: Brand Edit ID
            example: 22f07ed4-665a-46de-9843-b271e2e3d247
          example: 22f07ed4-665a-46de-9843-b271e2e3d247
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      brandId:
                        type: string
                        format: uuid
                      status:
                        enum:
                          - preparing
                          - input_required
                          - awaiting_approval
                          - applied
                          - discarded
                          - stale
                          - no_changes
                          - failed
                        type: string
                      baseSkillId:
                        type: string
                        format: uuid
                      target:
                        anyOf:
                          - type: object
                            properties:
                              skillId:
                                type: string
                                format: uuid
                            required:
                              - skillId
                            additionalProperties: false
                          - type: 'null'
                      changeSet:
                        anyOf:
                          - type: object
                            properties:
                              schemaVersion:
                                const: 2
                              baseSkillId:
                                type: string
                                format: uuid
                                description: >-
                                  Canonical identity of the complete base Brand
                                  revision.
                              targetSkillId:
                                type: string
                                format: uuid
                                description: >-
                                  Canonical identity reserved for the complete
                                  candidate Brand revision.
                              profileChanges:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    kind:
                                      const: field
                                    path:
                                      type: string
                                      minLength: 1
                                    operation:
                                      enum:
                                        - add
                                        - remove
                                        - replace
                                      type: string
                                    previous:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                    next:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                  required:
                                    - kind
                                    - path
                                    - operation
                                    - previous
                                    - next
                                  additionalProperties: false
                              markdownChanges:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    path:
                                      type: string
                                      minLength: 1
                                    operation:
                                      enum:
                                        - add
                                        - remove
                                        - modify
                                      type: string
                                    additions:
                                      anyOf:
                                        - type: integer
                                          minimum: 0
                                          maximum: 9007199254740991
                                        - type: 'null'
                                    deletions:
                                      anyOf:
                                        - type: integer
                                          minimum: 0
                                          maximum: 9007199254740991
                                        - type: 'null'
                                    hunks:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          oldStart:
                                            type: integer
                                            minimum: 0
                                            maximum: 9007199254740991
                                          oldLines:
                                            type: integer
                                            minimum: 0
                                            maximum: 9007199254740991
                                          newStart:
                                            type: integer
                                            minimum: 0
                                            maximum: 9007199254740991
                                          newLines:
                                            type: integer
                                            minimum: 0
                                            maximum: 9007199254740991
                                          lines:
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                kind:
                                                  enum:
                                                    - context
                                                    - add
                                                    - remove
                                                  type: string
                                                text:
                                                  type: string
                                                noNewlineAtEndOfFile:
                                                  const: true
                                                  description: >-
                                                    This line has no terminating newline: in
                                                    the original file for remove, the
                                                    candidate for add, or both for context.
                                                    This annotation does not count as a
                                                    content line. Older receipts may omit
                                                    this information.
                                              required:
                                                - kind
                                                - text
                                              additionalProperties: false
                                        required:
                                          - oldStart
                                          - oldLines
                                          - newStart
                                          - newLines
                                          - lines
                                        additionalProperties: false
                                    truncated:
                                      type: boolean
                                  required:
                                    - path
                                    - operation
                                    - additions
                                    - deletions
                                    - hunks
                                    - truncated
                                  additionalProperties: false
                              assetChanges:
                                type: array
                                items:
                                  anyOf:
                                    - type: object
                                      properties:
                                        kind:
                                          const: asset
                                        role:
                                          const: primary_logo
                                        operation:
                                          enum:
                                            - add
                                            - remove
                                            - replace
                                          type: string
                                        previousAssetId:
                                          anyOf:
                                            - type: string
                                              format: uuid
                                            - type: 'null'
                                        nextAssetId:
                                          anyOf:
                                            - type: string
                                              format: uuid
                                            - type: 'null'
                                      required:
                                        - kind
                                        - role
                                        - operation
                                        - previousAssetId
                                        - nextAssetId
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        kind:
                                          const: asset
                                        role:
                                          const: font
                                        operation:
                                          enum:
                                            - add
                                            - remove
                                          type: string
                                        path:
                                          type: string
                                          minLength: 1
                                        family:
                                          type: string
                                          minLength: 1
                                        weight:
                                          type: integer
                                          minimum: 1
                                          maximum: 1000
                                        format:
                                          enum:
                                            - woff
                                            - woff2
                                            - ttf
                                            - otf
                                          type: string
                                      required:
                                        - kind
                                        - role
                                        - operation
                                        - path
                                        - family
                                        - weight
                                        - format
                                      additionalProperties: false
                              fontMetadataChanges:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    path:
                                      type: string
                                      minLength: 1
                                    family:
                                      type: string
                                      minLength: 1
                                    previous:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          style:
                                            type: string
                                            minLength: 1
                                            maxLength: 200
                                            description: >-
                                              CSS font-style descriptor, including
                                              italic or oblique angles.
                                          weight:
                                            type: string
                                            minLength: 1
                                            maxLength: 100
                                            description: >-
                                              CSS font-weight descriptor, including
                                              variable ranges such as 300 500;
                                              distinct from the file's numeric
                                              rendering weight.
                                          width:
                                            type: string
                                            minLength: 1
                                            maxLength: 100
                                            description: >-
                                              CSS font-width or font-stretch
                                              descriptor.
                                          unicodeRange:
                                            type: string
                                            minLength: 1
                                            maxLength: 8192
                                            description: >-
                                              CSS unicode-range descriptor identifying
                                              the characters this face covers.
                                        required:
                                          - style
                                          - weight
                                    next:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          style:
                                            type: string
                                            minLength: 1
                                            maxLength: 200
                                            description: >-
                                              CSS font-style descriptor, including
                                              italic or oblique angles.
                                          weight:
                                            type: string
                                            minLength: 1
                                            maxLength: 100
                                            description: >-
                                              CSS font-weight descriptor, including
                                              variable ranges such as 300 500;
                                              distinct from the file's numeric
                                              rendering weight.
                                          width:
                                            type: string
                                            minLength: 1
                                            maxLength: 100
                                            description: >-
                                              CSS font-width or font-stretch
                                              descriptor.
                                          unicodeRange:
                                            type: string
                                            minLength: 1
                                            maxLength: 8192
                                            description: >-
                                              CSS unicode-range descriptor identifying
                                              the characters this face covers.
                                        required:
                                          - style
                                          - weight
                                  required:
                                    - path
                                    - family
                                    - previous
                                    - next
                                  additionalProperties: false
                                description: >-
                                  Changes to CSS face declarations on existing
                                  saved font files; omitted when none changed.
                                  Role family and weight controls are unchanged.
                            required:
                              - schemaVersion
                              - baseSkillId
                              - targetSkillId
                              - profileChanges
                              - markdownChanges
                              - assetChanges
                            additionalProperties: false
                          - type: 'null'
                      targetProfile:
                        anyOf:
                          - type: object
                            properties:
                              name:
                                anyOf:
                                  - type: string
                                  - type: 'null'
                              colors:
                                anyOf:
                                  - type: array
                                    minItems: 1
                                    items:
                                      type: object
                                      properties:
                                        hex:
                                          type: string
                                          pattern: ^#[0-9A-Fa-f]{6}$
                                          description: >-
                                            Six-digit HEX color value, including the
                                            leading #.
                                        name:
                                          type: string
                                          minLength: 1
                                          maxLength: 80
                                          description: >-
                                            The color's name, when established by
                                            the source.
                                        group:
                                          type: string
                                          minLength: 1
                                          maxLength: 80
                                          description: >-
                                            The source's palette group label. Omit
                                            when the source does not group this
                                            color.
                                        usage:
                                          type: string
                                          minLength: 1
                                          maxLength: 500
                                          description: >-
                                            Source-supported guidance on when and
                                            how to use this color.
                                      required:
                                        - hex
                                      additionalProperties: false
                                  - type: 'null'
                              gradients:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    name:
                                      type: string
                                      minLength: 1
                                      maxLength: 80
                                      description: >-
                                        The gradient's name, as established by
                                        the source.
                                    angle:
                                      type: number
                                      minimum: 0
                                      exclusiveMaximum: 360
                                      description: >-
                                        The linear gradient's angle in degrees,
                                        from 0 up to but not including 360.
                                    stops:
                                      type: array
                                      minItems: 2
                                      items:
                                        type: object
                                        properties:
                                          hex:
                                            type: string
                                            pattern: ^#[0-9A-Fa-f]{6}$
                                            description: >-
                                              Six-digit HEX color value for this stop,
                                              including the leading #.
                                          position:
                                            type: number
                                            minimum: 0
                                            maximum: 100
                                            description: >-
                                              The stop's position as a percentage from
                                              0 to 100.
                                        required:
                                          - hex
                                          - position
                                        additionalProperties: false
                                      description: >-
                                        At least two color stops in
                                        non-decreasing position order. Adjacent
                                        stops may share a position to create a
                                        hard transition.
                                    usage:
                                      type: string
                                      minLength: 1
                                      maxLength: 500
                                      description: >-
                                        Source-supported guidance on when and
                                        how to use this gradient.
                                  required:
                                    - name
                                    - angle
                                    - stops
                                  additionalProperties: false
                                description: >-
                                  The Brand's evidenced linear gradients in
                                  source order, including exact angles, stops,
                                  and usage guidance.
                              primaryLogo:
                                anyOf:
                                  - type: object
                                    properties:
                                      imageId:
                                        type: string
                                        format: uuid
                                    required:
                                      - imageId
                                    additionalProperties: false
                                  - type: 'null'
                              typography:
                                type: object
                                properties:
                                  roles:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        name:
                                          type: string
                                          minLength: 1
                                        weight:
                                          anyOf:
                                            - type: integer
                                              minimum: -9007199254740991
                                              maximum: 9007199254740991
                                            - type: 'null'
                                        font:
                                          anyOf:
                                            - type: object
                                              properties:
                                                source:
                                                  enum:
                                                    - google
                                                    - custom
                                                  type: string
                                                family:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                              required:
                                                - source
                                                - family
                                              additionalProperties: false
                                            - type: object
                                              properties:
                                                family:
                                                  type: string
                                                  minLength: 1
                                                status:
                                                  const: unavailable
                                                reason:
                                                  type: string
                                                  minLength: 1
                                              required:
                                                - family
                                                - status
                                                - reason
                                              additionalProperties: false
                                      required:
                                        - name
                                        - weight
                                        - font
                                      additionalProperties: false
                                  heading:
                                    anyOf:
                                      - anyOf:
                                          - type: object
                                            properties:
                                              source:
                                                enum:
                                                  - google
                                                  - custom
                                                type: string
                                              family:
                                                type: string
                                                minLength: 1
                                                maxLength: 120
                                            required:
                                              - source
                                              - family
                                            additionalProperties: false
                                          - type: object
                                            properties:
                                              family:
                                                type: string
                                                minLength: 1
                                              status:
                                                const: unavailable
                                              reason:
                                                type: string
                                                minLength: 1
                                            required:
                                              - family
                                              - status
                                              - reason
                                            additionalProperties: false
                                      - type: 'null'
                                    description: >-
                                      Deprecated. Font of the role named
                                      Heading, if any.
                                  body:
                                    anyOf:
                                      - anyOf:
                                          - type: object
                                            properties:
                                              source:
                                                enum:
                                                  - google
                                                  - custom
                                                type: string
                                              family:
                                                type: string
                                                minLength: 1
                                                maxLength: 120
                                            required:
                                              - source
                                              - family
                                            additionalProperties: false
                                          - type: object
                                            properties:
                                              family:
                                                type: string
                                                minLength: 1
                                              status:
                                                const: unavailable
                                              reason:
                                                type: string
                                                minLength: 1
                                            required:
                                              - family
                                              - status
                                              - reason
                                            additionalProperties: false
                                      - type: 'null'
                                    description: >-
                                      Deprecated. Font of the role named Body,
                                      if any.
                                required:
                                  - roles
                                  - heading
                                  - body
                                additionalProperties: false
                            required:
                              - name
                              - primaryLogo
                            additionalProperties: false
                          - type: 'null'
                      interaction:
                        anyOf:
                          - anyOf:
                              - type: object
                                properties:
                                  id:
                                    type: string
                                    format: uuid
                                  subject:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                  prompt:
                                    type: string
                                    minLength: 1
                                    maxLength: 1000
                                  kind:
                                    const: clarification
                                  accepts:
                                    type: object
                                    properties:
                                      text:
                                        type: object
                                        properties:
                                          required:
                                            type: boolean
                                            default: false
                                          minLength:
                                            type: integer
                                            minimum: 0
                                            maximum: 10000
                                            default: 1
                                          maxLength:
                                            type: integer
                                            minimum: -9007199254740991
                                            maximum: 10000
                                            exclusiveMinimum: 0
                                            default: 10000
                                        additionalProperties: false
                                      images:
                                        type: object
                                        properties:
                                          min:
                                            type: integer
                                            minimum: 0
                                            maximum: 9007199254740991
                                            default: 0
                                          max:
                                            type: integer
                                            minimum: -9007199254740991
                                            maximum: 9007199254740991
                                            exclusiveMinimum: 0
                                        required:
                                          - max
                                        additionalProperties: false
                                      sources:
                                        type: object
                                        properties:
                                          min:
                                            type: integer
                                            minimum: 0
                                            maximum: 9007199254740991
                                            default: 0
                                          max:
                                            type: integer
                                            minimum: -9007199254740991
                                            maximum: 9007199254740991
                                            exclusiveMinimum: 0
                                        required:
                                          - max
                                        additionalProperties: false
                                    additionalProperties: false
                                required:
                                  - id
                                  - subject
                                  - prompt
                                  - kind
                                  - accepts
                                additionalProperties: false
                              - type: object
                                properties:
                                  id:
                                    type: string
                                    format: uuid
                                  subject:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                  prompt:
                                    type: string
                                    minLength: 1
                                    maxLength: 1000
                                  kind:
                                    const: choice
                                  options:
                                    type: array
                                    minItems: 2
                                    maxItems: 6
                                    items:
                                      type: object
                                      properties:
                                        id:
                                          type: string
                                          minLength: 1
                                          maxLength: 80
                                        label:
                                          type: string
                                          minLength: 1
                                          maxLength: 200
                                        description:
                                          type: string
                                          minLength: 1
                                          maxLength: 500
                                        imageIds:
                                          type: array
                                          maxItems: 10
                                          items:
                                            type: string
                                            format: uuid
                                      required:
                                        - id
                                        - label
                                      additionalProperties: false
                                  alternate:
                                    type: object
                                    properties:
                                      label:
                                        type: string
                                        minLength: 1
                                        maxLength: 200
                                      accepts:
                                        type: object
                                        properties:
                                          text:
                                            type: object
                                            properties:
                                              required:
                                                type: boolean
                                                default: false
                                              minLength:
                                                type: integer
                                                minimum: 0
                                                maximum: 10000
                                                default: 1
                                              maxLength:
                                                type: integer
                                                minimum: -9007199254740991
                                                maximum: 10000
                                                exclusiveMinimum: 0
                                                default: 10000
                                            additionalProperties: false
                                          images:
                                            type: object
                                            properties:
                                              min:
                                                type: integer
                                                minimum: 0
                                                maximum: 9007199254740991
                                                default: 0
                                              max:
                                                type: integer
                                                minimum: -9007199254740991
                                                maximum: 9007199254740991
                                                exclusiveMinimum: 0
                                            required:
                                              - max
                                            additionalProperties: false
                                          sources:
                                            type: object
                                            properties:
                                              min:
                                                type: integer
                                                minimum: 0
                                                maximum: 9007199254740991
                                                default: 0
                                              max:
                                                type: integer
                                                minimum: -9007199254740991
                                                maximum: 9007199254740991
                                                exclusiveMinimum: 0
                                            required:
                                              - max
                                            additionalProperties: false
                                        additionalProperties: false
                                    required:
                                      - accepts
                                    additionalProperties: false
                                required:
                                  - id
                                  - subject
                                  - prompt
                                  - kind
                                  - options
                                additionalProperties: false
                          - type: 'null'
                      replacement:
                        anyOf:
                          - type: object
                            properties:
                              replacesEditId:
                                anyOf:
                                  - type: string
                                    format: uuid
                                  - type: 'null'
                              replacedByEditId:
                                anyOf:
                                  - type: string
                                    format: uuid
                                  - type: 'null'
                              discardReason:
                                anyOf:
                                  - enum:
                                      - explicit
                                      - replaced
                                    type: string
                                  - type: 'null'
                            required:
                              - replacesEditId
                              - replacedByEditId
                              - discardReason
                            additionalProperties: false
                          - type: 'null'
                      changeSummary:
                        anyOf:
                          - type: string
                          - type: 'null'
                      statusMessage:
                        type: string
                      error:
                        anyOf:
                          - type: object
                            properties:
                              code:
                                type: string
                                minLength: 1
                              message:
                                type: string
                                minLength: 1
                              retryable:
                                type: boolean
                            required:
                              - code
                              - message
                              - retryable
                            additionalProperties: false
                          - type: 'null'
                      createdAt:
                        type: string
                        format: date-time
                        x-native-type: date
                      updatedAt:
                        type: string
                        format: date-time
                        x-native-type: date
                    required:
                      - id
                      - brandId
                      - status
                      - baseSkillId
                      - target
                      - changeSet
                      - targetProfile
                      - interaction
                      - replacement
                      - changeSummary
                      - statusMessage
                      - error
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                required:
                  - data
              example:
                data:
                  id: 22f07ed4-665a-46de-9843-b271e2e3d247
                  brandId: e6220a5e-4a68-4d39-8bb9-5105e9a3a164
                  baseSkillId: 6590fb89-c177-45b3-85d4-74ab6b92dc2a
                  target:
                    skillId: 6a46ce07-8509-461d-bb64-46cb6cd996ea
                  changeSet:
                    schemaVersion: 2
                    baseSkillId: 6590fb89-c177-45b3-85d4-74ab6b92dc2a
                    targetSkillId: 6a46ce07-8509-461d-bb64-46cb6cd996ea
                    profileChanges: []
                    assetChanges: []
                    markdownChanges:
                      - path: references/colors.md
                        operation: modify
                        additions: 1
                        deletions: 1
                        hunks:
                          - oldStart: 3
                            oldLines: 1
                            newStart: 3
                            newLines: 1
                            lines:
                              - kind: remove
                                text: 'Atlas Pro uses yellow #FFD600.'
                              - kind: add
                                text: 'Atlas Pro uses burgundy #6D1A36.'
                        truncated: false
                  targetProfile:
                    name: Acme Inc.
                    primaryLogo: null
                  interaction: null
                  replacement: null
                  changeSummary: 'Use burgundy #6D1A36 for Atlas Pro materials.'
                  statusMessage: Acme Inc.'s brand update is active.
                  error: null
                  createdAt: '2026-10-24T09:00:00.000Z'
                  updatedAt: '2026-10-24T09:00:00.000Z'
                  status: applied
        '401':
          description: '401'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrandsApplyEdit401ErrorResponse'
        '403':
          description: '403'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrandsApplyEdit403ErrorResponse'
        '404':
          description: '404'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrandsApplyEdit404ErrorResponse'
        '409':
          description: '409'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrandsApplyEdit409ErrorResponse'
        '429':
          description: '429'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrandsApplyEdit429ErrorResponse'
          headers:
            Retry-After:
              description: >-
                Seconds until the applicable request or operation limit resets.
                Present when the limiter can calculate the delay.
              schema:
                type: integer
                minimum: 0
        '500':
          description: '500'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrandsApplyEdit500ErrorResponse'
      x-codeSamples:
        - lang: bash
          label: cURL
          source: |-
            curl --request POST \
              --url 'https://www.rainbrand.com/api/v1/brands/e6220a5e-4a68-4d39-8bb9-5105e9a3a164/edits/22f07ed4-665a-46de-9843-b271e2e3d247/apply' \
              --header "x-api-key: $RAINBRAND_API_KEY"
components:
  schemas:
    BrandsApplyEdit401ErrorResponse:
      type: object
      properties:
        error:
          allOf:
            - $ref: '#/components/schemas/ApiError'
            - anyOf:
                - type: object
                  properties:
                    code:
                      const: UNAUTHORIZED
                    status:
                      const: 401
                    message:
                      type: string
                      default: Invalid or missing API credentials
                    data: {}
                  required:
                    - code
                    - status
                    - message
                  title: UNAUTHORIZED
                - type: object
                  properties:
                    code:
                      type: string
                    status:
                      type: integer
                    message:
                      type: string
                    data: {}
                  required:
                    - code
                    - status
                    - message
      required:
        - error
    BrandsApplyEdit403ErrorResponse:
      type: object
      properties:
        error:
          allOf:
            - $ref: '#/components/schemas/ApiError'
            - anyOf:
                - type: object
                  properties:
                    code:
                      const: ACCOUNT_BANNED
                    status:
                      const: 403
                    message:
                      type: string
                      default: This account has been suspended.
                    data: {}
                  required:
                    - code
                    - status
                    - message
                  title: ACCOUNT_BANNED
                - type: object
                  properties:
                    code:
                      const: FORBIDDEN
                    status:
                      const: 403
                    message:
                      type: string
                      default: Plan upgrade required
                    data: {}
                  required:
                    - code
                    - status
                    - message
                  title: FORBIDDEN
                - type: object
                  properties:
                    code:
                      const: FEATURE_NOT_AVAILABLE
                    status:
                      const: 403
                    message:
                      type: string
                      default: This operation isn't available for this integration.
                    data:
                      type: object
                      properties:
                        feature:
                          type: string
                          minLength: 1
                          description: >-
                            The unavailable feature. See [known feature
                            values](https://docs.rainbrand.com/api/errors#known-feature-values).
                            New values may be added. If a value is unfamiliar,
                            display the error's message.
                          examples:
                            - brands
                            - brand_creation
                            - brand_exports
                            - brand_edits
                            - brand_library
                            - brand_fonts
                            - briefs
                            - reviews
                            - generations
                            - image_transformations
                            - temporary_uploads
                            - model_catalog
                            - image_search
                            - docs_search
                            - agent_feedback
                            - account
                            - workspaces
                            - credits
                            - media
                            - pdf_sources
                            - instagram_sources
                            - brand_sources
                            - brand_processing
                        sourceIndex:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                          description: >-
                            Zero-based index in the submitted sources array,
                            when a particular source caused the refusal.
                        requestId:
                          type: string
                          format: uuid
                          description: >-
                            Diagnostic identifier for this refusal. Include it
                            when contacting support.
                      required:
                        - feature
                  required:
                    - code
                    - status
                    - message
                    - data
                  title: FEATURE_NOT_AVAILABLE
                - type: object
                  properties:
                    code:
                      type: string
                    status:
                      type: integer
                    message:
                      type: string
                    data: {}
                  required:
                    - code
                    - status
                    - message
      required:
        - error
    BrandsApplyEdit404ErrorResponse:
      type: object
      properties:
        error:
          allOf:
            - $ref: '#/components/schemas/ApiError'
            - anyOf:
                - type: object
                  properties:
                    code:
                      const: BRAND_NOT_FOUND
                    status:
                      const: 404
                    message:
                      type: string
                      default: Brand not found
                    data: {}
                  required:
                    - code
                    - status
                    - message
                  title: BRAND_NOT_FOUND
                - type: object
                  properties:
                    code:
                      const: BRAND_EDIT_NOT_FOUND
                    status:
                      const: 404
                    message:
                      type: string
                      default: Brand edit not found
                    data: {}
                  required:
                    - code
                    - status
                    - message
                  title: BRAND_EDIT_NOT_FOUND
                - type: object
                  properties:
                    code:
                      type: string
                    status:
                      type: integer
                    message:
                      type: string
                    data: {}
                  required:
                    - code
                    - status
                    - message
      required:
        - error
    BrandsApplyEdit409ErrorResponse:
      type: object
      properties:
        error:
          allOf:
            - $ref: '#/components/schemas/ApiError'
            - anyOf:
                - type: object
                  properties:
                    code:
                      const: BRAND_EDIT_STALE
                    status:
                      const: 409
                    message:
                      type: string
                      default: Brand changed while the edit waited for approval
                    data:
                      type: object
                      properties:
                        editId:
                          type: string
                          format: uuid
                        status:
                          const: stale
                        activeSkillId:
                          anyOf:
                            - type: string
                              format: uuid
                            - type: 'null'
                      required:
                        - editId
                        - status
                        - activeSkillId
                  required:
                    - code
                    - status
                    - message
                    - data
                  title: BRAND_EDIT_STALE
                - type: object
                  properties:
                    code:
                      const: BRAND_EDIT_STATE_CONFLICT
                    status:
                      const: 409
                    message:
                      type: string
                      default: Brand edit cannot be applied in its current state
                    data:
                      type: object
                      properties:
                        editId:
                          type: string
                          format: uuid
                        status:
                          enum:
                            - preparing
                            - input_required
                            - awaiting_approval
                            - applied
                            - discarded
                            - stale
                            - no_changes
                            - failed
                          type: string
                      required:
                        - editId
                        - status
                  required:
                    - code
                    - status
                    - message
                    - data
                  title: BRAND_EDIT_STATE_CONFLICT
                - type: object
                  properties:
                    code:
                      type: string
                    status:
                      type: integer
                    message:
                      type: string
                    data: {}
                  required:
                    - code
                    - status
                    - message
      required:
        - error
    BrandsApplyEdit429ErrorResponse:
      type: object
      properties:
        error:
          allOf:
            - $ref: '#/components/schemas/ApiError'
            - anyOf:
                - type: object
                  properties:
                    code:
                      const: TOO_MANY_REQUESTS
                    status:
                      const: 429
                    message:
                      type: string
                      default: Rate limit exceeded
                    data: {}
                  required:
                    - code
                    - status
                    - message
                  title: TOO_MANY_REQUESTS
                - type: object
                  properties:
                    code:
                      type: string
                    status:
                      type: integer
                    message:
                      type: string
                    data: {}
                  required:
                    - code
                    - status
                    - message
      required:
        - error
    BrandsApplyEdit500ErrorResponse:
      type: object
      properties:
        error:
          allOf:
            - $ref: '#/components/schemas/ApiError'
            - anyOf:
                - type: object
                  properties:
                    code:
                      const: INTERNAL_ERROR
                    status:
                      const: 500
                    message:
                      type: string
                      default: Brand edit request failed
                    data: {}
                  required:
                    - code
                    - status
                    - message
                  title: INTERNAL_ERROR
                - type: object
                  properties:
                    code:
                      type: string
                    status:
                      type: integer
                    message:
                      type: string
                    data: {}
                  required:
                    - code
                    - status
                    - message
      required:
        - error
    ApiError:
      type: object
      properties:
        code:
          type: string
        status:
          type: integer
        message:
          type: string
        data: {}
      required:
        - code
        - status
        - message
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Rainbrand API key, for example `x-api-key: bloom_sk_...`.'
    bearer:
      type: http
      scheme: bearer
      description: >-
        Rainbrand API key (`Bearer bloom_sk_...`) or Rainbrand OAuth access
        token.
    oauth:
      type: oauth2
      description: >-
        Authorization Code with PKCE S256. See
        [Authentication](https://docs.rainbrand.com/api/authentication).
      flows:
        authorizationCode:
          authorizationUrl: https://www.rainbrand.com/api/auth/oauth2/authorize
          tokenUrl: https://www.rainbrand.com/api/auth/oauth2/token
          scopes:
            openid: Authenticate the user's identity with OpenID Connect.
            offline_access: Request a refresh token for access when the user is offline.

````

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