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

# Updates or removes colors across one or more styles.

> Body is always an array, even for a single item. All-or-nothing across the whole batch. Each item identifies one (styleId, colorId) assignment; state="deleted" soft-deletes it. Each returned color carries the same enriched customFields[] and properties[] ("hasCustomFieldOverrides") as the GET routes. Capped at 200 items per request.



## OpenAPI

````yaml https://service.my.delogue.com/openapi/external.json put /api/style-colors
openapi: 3.1.1
info:
  title: Delogue External API - (Production)
  description: Integration endpoints for Delogue API
  version: 1.0.0
servers:
  - url: /
    description: The Delogue environment serving this document.
  - url: https://{host}
    description: Per-customer Delogue API host.
    variables:
      host:
        default: service.my.delogue.com
        description: >-
          The API host for your Delogue environment, e.g.
          service.<customer>.delogue.com.
security: []
tags:
  - name: Barcodes
  - name: Brands
  - name: CareInstructionIcons
  - name: CareInstructionLayers
  - name: CareInstructionMaterials
  - name: CareInstructions
  - name: Color Groups
  - name: Colors
  - name: ComplianceCategories
  - name: ComplianceCustomFields
  - name: Facilities
  - name: Groups
  - name: ItemCategories
  - name: Items
  - name: MeasurementCharts
  - name: MigrationApproval
  - name: MigrationVerification
  - name: OrganizationMigration
  - name: Organizations
  - name: SampleRequests
  - name: SampleTypes
  - name: Seasons
  - name: SizeRanges
  - name: Style Prices
  - name: StyleCareInstructions
  - name: StyleCategories
  - name: StyleColors
  - name: StyleContacts
  - name: StyleCustomFields
  - name: StyleFiles
  - name: StyleItems
  - name: StyleRelations
  - name: Styles
  - name: StyleSkus
  - name: StyleSupplierFacilities
  - name: SubSuppliers
  - name: Suppliers
paths:
  /api/style-colors:
    put:
      tags:
        - StyleColors
      summary: Updates or removes colors across one or more styles.
      description: >-
        Body is always an array, even for a single item. All-or-nothing across
        the whole batch. Each item identifies one (styleId, colorId) assignment;
        state="deleted" soft-deletes it. Each returned color carries the same
        enriched customFields[] and properties[] ("hasCustomFieldOverrides") as
        the GET routes. Capped at 200 items per request.
      operationId: StyleColors_UpdateBulkAcrossStyles
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/StyleColorBulkUpdateDto'
          text/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/StyleColorBulkUpdateDto'
          application/*+json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/StyleColorBulkUpdateDto'
        required: true
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ApiResponseOfListOfStyleColorDetailDto'
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponseOfListOfStyleColorDetailDto'
            text/json:
              schema:
                $ref: '#/components/schemas/ApiResponseOfListOfStyleColorDetailDto'
        '400':
          description: Bad Request
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ApiBulkErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ApiBulkErrorResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ApiBulkErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '403':
          description: Forbidden
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ApiBulkErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ApiBulkErrorResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ApiBulkErrorResponse'
        '404':
          description: Not Found
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ApiBulkErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ApiBulkErrorResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ApiBulkErrorResponse'
        '422':
          description: Unprocessable Entity
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ApiBulkErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ApiBulkErrorResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ApiBulkErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
      security:
        - {}
components:
  schemas:
    StyleColorBulkUpdateDto:
      type: object
      properties:
        styleId:
          type: integer
          description: >-
            Identifier of the style whose color assignment this item updates or
            removes.
          format: int64
        colorId:
          type: integer
          description: >-
            Identifier of the color assigned to the style whose state this item
            sets or removes.
          format: int64
        state:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/ColorState'
          description: >-
            Lifecycle state of the color group, indicating whether it is
            available for use.
      additionalProperties: false
    ApiResponseOfListOfStyleColorDetailDto:
      required:
        - status
        - code
        - data
      type: object
      properties:
        status:
          $ref: '#/components/schemas/ApiResponseStatus'
          description: >-
            The coarse outcome of the request, indicating whether it succeeded
            or failed.
        code:
          type: string
          description: >-
            The specific machine-readable outcome code, such as ok on success or
            the most specific error code on failure. Always lowercase on the
            wire.
        data:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/StyleColorDetailDto'
          description: >-
            The response payload, either a single object for a by-id read or an
            array for a bulk operation. Omitted from the body when there is no
            value.
      additionalProperties: false
    ApiBulkErrorResponse:
      required:
        - status
        - code
        - error
      type: object
      properties:
        status:
          $ref: '#/components/schemas/ApiResponseStatus'
          description: >-
            The coarse outcome of the request, indicating whether it succeeded
            or failed.
        code:
          type: string
          description: >-
            The specific machine-readable outcome code, such as ok on success or
            the most specific error code on failure. Always lowercase on the
            wire.
        error:
          $ref: '#/components/schemas/BulkErrorDetail'
          description: >-
            The bulk error payload, present instead of data when a bulk
            operation fails. It carries the batch outcome counts and the
            per-item error rows.
      additionalProperties: false
    ApiErrorResponse:
      type: object
      properties:
        status:
          $ref: '#/components/schemas/ApiResponseStatus'
          description: >-
            The coarse outcome of the request, indicating whether it succeeded
            or failed.
        code:
          type: string
          description: >-
            The specific machine-readable outcome code, such as ok on success or
            the most specific error code on failure. Always lowercase on the
            wire.
        error:
          $ref: '#/components/schemas/ErrorWrapper'
          description: >-
            The error payload, present instead of data on a failed response. It
            wraps the list of detail rows describing what went wrong.
      additionalProperties: false
    ColorState:
      enum:
        - active
        - inactive
        - deleted
      type: string
      description: >-
        Lifecycle state of the color group, indicating whether it is available
        for use.
    ApiResponseStatus:
      enum:
        - success
        - error
      type: string
      description: >-
        The coarse outcome of the request, indicating whether it succeeded or
        failed.
    StyleColorDetailDto:
      type: object
      properties:
        styleId:
          type: integer
          description: Identifier of the style this color is assigned to.
          format: int64
        colorId:
          type: integer
          description: >-
            Identifier of the assigned color in the organization's color
            library. This is the same id used for the color everywhere else in
            the API.
          format: int64
        name:
          type:
            - 'null'
            - string
          description: Display name of the assigned color.
        customId1:
          type:
            - 'null'
            - string
          description: Primary customer-defined identifier for the color.
        customId2:
          type:
            - 'null'
            - string
          description: Secondary customer-defined identifier for the color.
        colorReference:
          type:
            - 'null'
            - string
          description: Reference code for the color, such as a Pantone code.
        colorNote:
          type:
            - 'null'
            - string
          description: Free-text note describing the color.
        state:
          $ref: '#/components/schemas/StyleColorState'
          description: >-
            Whether the assigned color is currently available on the style. It
            is inactive when the assignment or its master color has been
            deactivated or soft-deleted.
        colorLanguages:
          type: array
          items:
            $ref: '#/components/schemas/ColorLanguageNameDto'
          description: >-
            Localized names of the color, one entry per linked language.
            Populated only when the organization's multiple-language module is
            enabled, and empty otherwise.
        colorGroups:
          type: array
          items:
            $ref: '#/components/schemas/ColorGroupDto'
          description: >-
            Color groups this color belongs to. Populated only when the
            organization's e-commerce module is enabled, and empty otherwise.
        customFields:
          type: array
          items:
            $ref: '#/components/schemas/CustomFieldResponseDto'
          description: >-
            The style's custom fields with this color's per-color values
            resolved in. A non-empty per-color value wins; otherwise the master
            style value is used.
        properties:
          type: array
          items:
            type: string
          description: >-
            Additive flags describing this color. Contains
            hasCustomFieldOverrides when at least one per-color custom-field
            value overrides the master style value.
      additionalProperties: false
      description: >-
        The response payload, either a single object for a by-id read or an
        array for a bulk operation. Omitted from the body when there is no
        value.
    BulkErrorDetail:
      required:
        - operation
        - total_items
        - failed_items
        - summary
        - details
      type: object
      properties:
        operation:
          type: string
          description: >-
            Identifies which bulk operation this result describes, such as
            bulk_create, bulk_update, or bulk_delete.
        total_items:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          description: The total number of items submitted in the bulk request.
          format: int32
        failed_items:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          description: >-
            The number of submitted items that failed validation or processing.
            Because bulk writes are all-or-nothing, any non-zero value means the
            whole batch was rolled back.
          format: int32
        summary:
          type: string
          description: A human-readable summary of why the bulk operation failed.
        details:
          type: array
          items:
            $ref: '#/components/schemas/ErrorDetailDto'
          description: >-
            The individual error rows, one per failing item. Each row's field
            path is prefixed with the item's array index, such as [3].name.
      additionalProperties: false
      description: >-
        The bulk error payload, present instead of data when a bulk operation
        fails. It carries the batch outcome counts and the per-item error rows.
    ErrorWrapper:
      type: object
      properties:
        details:
          type: array
          items:
            $ref: '#/components/schemas/ErrorDetailDto'
          description: >-
            The list of individual error detail rows for this failure, one per
            field or rule that failed.
      additionalProperties: false
      description: >-
        The error payload, present instead of data on a failed response. It
        wraps the list of detail rows describing what went wrong.
    StyleColorState:
      enum:
        - active
        - inactive
      type: string
      description: Activation state of this color variant on the style.
    ColorLanguageNameDto:
      type: object
      properties:
        languageId:
          type: integer
          description: Identifier of the language this translation belongs to.
          format: int64
        languageName:
          type:
            - 'null'
            - string
          description: Display name of the language.
        languageCode:
          type:
            - 'null'
            - string
          description: Short code of the language, such as da for Danish.
        colorName:
          type:
            - 'null'
            - string
          description: Translated name of the color in this language.
      additionalProperties: false
    ColorGroupDto:
      type: object
      properties:
        id:
          type: integer
          description: Unique identifier of the color group.
          format: int64
        name:
          type: string
          description: Display name of the color group.
        userDefinedId:
          type:
            - 'null'
            - string
          description: Customer-defined identifier for the color group.
        state:
          $ref: '#/components/schemas/ColorState'
          description: >-
            Lifecycle state of the color group, indicating whether it is
            available for use.
      additionalProperties: false
    CustomFieldResponseDto:
      type: object
      properties:
        id:
          type: integer
          description: Identifier of the custom field definition.
          format: int64
        customId1:
          type:
            - 'null'
            - string
          description: Customer-defined identifier of the custom field definition.
        type:
          type:
            - 'null'
            - string
          description: >-
            Data type of the custom field, which determines whether value,
            values, or perColorValues is populated.
        name:
          type:
            - 'null'
            - string
          description: Display name of the custom field.
        value:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/CustomFieldValueDto'
          description: >-
            The single resolved value for this SKU's color and size coordinate.
            A SKU pins exactly one color and size, so the per-color fan-out
            never applies.
        values:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/CustomFieldValueDto'
          description: >-
            Selected values for a multi-select custom field. Omitted when the
            field holds a single value.
        perColorValues:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/CustomFieldPerColorValueDto'
          description: >-
            Per-color values for a custom field configured to differ by color.
            Omitted when the field does not vary by color.
      additionalProperties: false
    ErrorDetailDto:
      required:
        - type
        - field
        - value
      type: object
      properties:
        type:
          type: string
          description: >-
            The hierarchical error code identifying the specific failure, such
            as validation_error.required_field. Consumers branch on this rather
            than on the message text.
        field:
          type:
            - 'null'
            - string
          description: >-
            The input field that caused the failure. Omitted when no specific
            field is at fault, such as an authorization denial or a server
            error.
        value:
          type:
            - 'null'
            - string
          description: >-
            A human-readable message describing the failure, or the offending
            value or limit that triggered it.
      additionalProperties: false
    CustomFieldValueDto:
      type: object
      properties:
        id:
          type: integer
          description: >-
            Identifier of the selected allowed value for an allowed-value custom
            field, or 0 for text, date, and numeric fields.
          format: int64
        value:
          type:
            - 'null'
            - string
          description: >-
            Human-readable content of the field, either the selected allowed
            value's label or the entered text, date, or number.
        customId:
          type:
            - 'null'
            - string
          description: >-
            Customer-defined identifier of the selected allowed value. Omitted
            for text, date, and numeric fields.
      additionalProperties: false
      description: >-
        The single resolved value for this SKU's color and size coordinate. A
        SKU pins exactly one color and size, so the per-color fan-out never
        applies.
    CustomFieldPerColorValueDto:
      type: object
      properties:
        styleColorId:
          type: integer
          description: >-
            Identifier of the color card this per-color value applies to,
            matching a color's id in the colors list.
          format: int64
        value:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/CustomFieldValueDto'
          description: >-
            The single resolved value for this SKU's color and size coordinate.
            A SKU pins exactly one color and size, so the per-color fan-out
            never applies.
        values:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/CustomFieldValueDto'
          description: >-
            Selected values for a multi-select per-color custom field. Omitted
            when the per-color field holds a single value.
      additionalProperties: false

````