docs
  1. Attributes
  2. Product Master Attributes
  3. Update Or Create A Product Master Attribute

Update or create a product master attribute

v1.204.1
OpenAPI 3.0.3

This is the specification of the SCAYLE Admin API.

For more information about how to interact with the Admin API, you can read the respective developer guide. The developer guide includes code samples for our PHP SDK, for our Java SDK and for JavaScript and curl.

Authentication is done via X-Access-Token HTTP Header as described here.

Base url should be prefixed with /api/admin/v1.

If a client side timeout is deemed necessary, it is recommended to set it at a minimum of 380 seconds.

Server:https://{tenant-space}.admin.api.scayle.cloud/v1
Client Libraries

Attributes

​

Update or create a product master attribute

​

This endpoint can be used to create a new product master attribute. If an attribute with the same name has already been assigned to the product master, then its value will be replaced with the given one.

See more details in the Developer Guide.

Path Parameters

  • You can either pass the ID of a product master or its reference key. When using a reference key, it must be provided in the format key=<referenceKey> (for example key=M0001-black). It is highly recommended to encode the equal sign as %3D instead of using a plain =, for example key%3DM0001-black.

Query Parameters

  • If set to true, then even locked attributes get updated/deleted.

Body·

required
application/json
  • The attribute name.

  • The attribute type.

    values
    simplesimpleListlocalizedStringlocalizedStringListadvancedadvancedList
  • The attribute value where the datatype is defined by the type property.

  • Specifies if the attribute group should be locked.

  • Used to override the attribute value for a specific shop country. Only supported by products, product masters and variants.

    Properties: 4

Responses

  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/product-masters/{productMasterIdentifier}/attributes
// Simple Attribute
const attribute = {
    "name": "size",
    "type": "simple",
    "value": "M"
};

const response = await adminApi.apis.Attributes.updateOrCreateProductMasterAttribute(
    {productMasterIdentifier: 1},
    {requestBody: attribute}
);

const createdAttribute = response.body;

// Simple List Attribute
const attribute = {
  "name": "season",
  "type": "simpleList",
  "value": ["autumn", "winter"]
};

const response = await adminApi.apis.Attributes.updateOrCreateProductMasterAttribute(
  {productMasterIdentifier: 1},
  {requestBody: attribute}
);

const createdAttribute = response.body;

//Localized String Attribute
const attribute = {
    "name": "collection",
    "type": "localizedList",
    "value": {
      "de_DE": "einzigartig", 
      "en_GB": "unique"
    }
};

const response = await adminApi.apis.Attributes.updateOrCreateProductMasterAttribute(
    {productMasterIdentifier: 1},
    {requestBody: attribute}
);

const createdAttribute = response.body;

// Localized String List Attribute
const attribute = {
    "name": "color",
    "type": "localizedStringList",
    "value": [
        {"de_DE": "weiß", "en_GB": "white"},
        {"de_DE": "schwarz", "en_GB": "black"}
    ]
};

const response = await adminApi.apis.Attributes.updateOrCreateProductMasterAttribute(
    {productMasterIdentifier: 1},
    {requestBody: attribute}
);

const createdAttribute = response.body;

// Advanced Attribute
const attribute = {
  "name": "dimensions",
  "type": "advanced",
  "value": {
      "height": 100,
      "width": 30,
      "unit": "cm"
  }
};

const response = await adminApi.apis.Attributes.updateOrCreateProductMasterAttribute(
  {productMasterIdentifier: 1},
  {requestBody: attribute}
);

const createdAttribute = response.body;

// Advanced List Attribute
const attribute = {
  "name": "material",
  "type": "advancedList",
  "value": [
      {
          "name": "wool",
          "percentage": 80
      },
      {
          "name": "cotton",
          "percentage": 20
      }
  ]   
};

const response = await adminApi.apis.Attributes.updateOrCreateProductMasterAttribute(
  {productMasterIdentifier: 1},
  {requestBody: attribute}
);

const createdAttribute = response.body;

{
  "name": "size",
  "type": "simple",
  "value": "M",
  "isLocked": false
}

Models

​
​
​

Last updated: December 02, 2026