Change Colors

IMPORTANT: This function should only be used on logos with status "Draft", and should only be used once the logo method has been confirmed.

Changes the colors of an existing logo.

POST /api/logo/{logoId}/changecolors

Parameters #

ParameterTypeDescription
logoIdintegerThe internal ID of the logo to modify.

Body #

The from colors must always refer to the original colors of the uploaded file, even if the logo has been modified previously. Always reference the initial state.

How this works:

  1. Order Matters: The `from` colors must always be listed in the exact same order as they appeared in the original file.
  2. Count Matches: The `to` colors must always contain the same number of colors as the `from` list.
  3. Positional Mapping: The mapping is positional. For example, changing the second color in the `to` list will update the second color from the `from` list to that new value.
{
  "colorChanges": [
    {
      "from": "200,HVID,299",
      "to": "200,SORT,333"
    }
  ]
}

Returns #

Returns the updated logo object with new colors and potentially updated preview image.

{
  "logoId": 123456,
  "logoItemNo": 987654,
  "title": "New Logo",
  "widthInMM": 100,
  "HeightInMM": 50,
  "logoType": "TRANSFER",
  "transferMethodKey": "VAND SPORT",
  "colors": [
    {
      "ID": "200",
      "Name": "PMS 200 C",
      "Red": 245,
      "Green": 56,
      "Blue": 59
    },
    {
      "ID": "333",
      "Name": "PMS 333 C",
      "Red": 53,
      "Green": 201,
      "Blue": 122
    }
  ],
  "status": "Draft",
  "storageCount": 0,
  "LowResBase64": "iVBORw0KGgoAAAANSU...",
  "prices": [...],
  "additionalFees": [...]
}