v1

latestOpenAPI 3.0.22026-07-223907721.1 MB
Attributes

Global Attributes

Create or update global attribute. Global attributes not depending on categories and are visible for offers in a global scope. Use these kind of attributes to define channel specific needs.

put/v1/channel/attribute/global

Headers

Content-Encoding'gzip'

Use the Content-Encoding: gzip when sending JSON requestBody as compressed payload. This is recommended when creating huge category trees. There is a limit of 32 MB on this route.

Request body

Example request

{
  "attributeList": [
    {
      "attributeId": "12323",
      "displayName": "Brand",
      "type": "text",
      "values": [
        {
          "value": "Beer"
        },
        {
          "value": "Tee",
          "display": "Wine"
        }
      ],
      "attributeValueValidation": "/^[0-9]{13}$/",
      "conditionalMandatoryBy": [
        {
          "attributeId": "12323",
          "attributeValues": [
            "High"
          ]
        }
      ],
      "conditionalOptionalBy": [
        {
          "attributeId": "12323",
          "attributeValues": [
            "No Frame"
          ]
        }
      ],
      "required": true,
      "section": "Colors and Appearance",
      "isRepeatableSubSection": true,
      "subSection": "Length",
      "isVariationDimension": true,
      "enumValues": [
        "Blue"
      ]
    }
  ]
}

Response

Global attribute created