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

# Removes one color assignment from a style.

> Soft-deletes the (style, color) assignment and cascades the per-color custom-field / description / care-instruction associations, then returns the removed assignment with state=inactive. 403 if the style belongs to another organization; 404 if the style doesn't exist or the color isn't assigned to it.



## OpenAPI

````yaml https://service.my.delogue.com/openapi/external.json delete /api/styles/{styleId}/colors/{colorId}
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/styles/{styleId}/colors/{colorId}:
    delete:
      tags:
        - StyleColors
      summary: Removes one color assignment from a style.
      description: >-
        Soft-deletes the (style, color) assignment and cascades the per-color
        custom-field / description / care-instruction associations, then returns
        the removed assignment with state=inactive. 403 if the style belongs to
        another organization; 404 if the style doesn't exist or the color isn't
        assigned to it.
      operationId: StyleColors_Delete
      parameters:
        - name: styleId
          in: path
          description: Identifier of the style whose color assignments are addressed.
          required: true
          schema:
            type: integer
            format: int64
        - name: colorId
          in: path
          description: >-
            Identifier of the color assigned to the style, from the
            organization's color library.
          required: true
          schema:
            type: integer
            format: int64
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ApiResponseOfStyleColorDetailDto'
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponseOfStyleColorDetailDto'
            text/json:
              schema:
                $ref: '#/components/schemas/ApiResponseOfStyleColorDetailDto'
        '401':
          description: Unauthorized
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '403':
          description: Forbidden
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '404':
          description: Not Found
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
      security:
        - {}
components:
  schemas:
    ApiResponseOfStyleColorDetailDto:
      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:
          oneOf:
            - type: 'null'
            - $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.
          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
    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
    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.
    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
    ColorState:
      enum:
        - active
        - inactive
        - deleted
      type: string
      description: >-
        Lifecycle state of the color group, indicating whether it is available
        for use.
    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

````