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

Update or create a product image 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 image attribute

​

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

Note that product images do not support advanced or shared attributes.

See more details in the Developer Guide.

Path Parameters

  • Product ID or reference key. If you are using a reference key, it is highly recommended to use the encoded equal sign (%3D) instead of the plain =

  • Product image ID or reference key. If you are using a reference key, it is highly recommended to use the encoded equal sign (%3D) instead of the plain =

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/products/{productIdentifier}/images/{imageIdentifier}/attributes
// Simple Attribute
let attribute = {
    "name": "size",
    "type": "simple",
    "value": "M"
};

let response = await client.apis.Attributes.updateOrCreateProductImageAttribute(
    {productIdentifier: 1, imageIdentifier: 2},
    {requestBody: attribute}
);

let createdAttribute = response.body;

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

let response = await client.apis.Attributes.updateOrCreateProductImageAttribute(
  {productIdentifier: 1, imageIdentifier: 2},
  {requestBody: attribute}
);

let createdAttribute = response.body;

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

let response = await client.apis.Attributes.updateOrCreateProductImageAttribute(
  {productIdentifier: 1, imageIdentifier: 2},
  {requestBody: attribute}
);

let createdAttribute = response.body;

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

let response = await client.apis.Attributes.updateOrCreateProductImageAttribute(
  {productIdentifier: 1, imageIdentifier: 2},
  {requestBody: attribute}
);

let createdAttribute = response.body;

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

Models

​
​
​

Last updated: December 02, 2026