docs
  1. Shops
  2. Smart Sorting Keys
  3. Update A Custom Smart Sorting Key

Update a custom smart sorting key

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

SmartSortingKeys

​

Smart Sorting Keys

Update a custom smart sorting key

​

This endpoint can be used to update an existing custom smart sorting key. Updating a system smart sorting key is not allowed.

Path Parameters

  • Smart sorting key. Always use the key= prefix. Encode = as %3D (for example key%3Dsummer-priority).

Body

required
application/json

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for put/smart-sorting-keys/{sortingKeyIdentifier}
const smartSortingKey = new SmartSortingKey();
smartSortingKey.key = 'summer-priority';
smartSortingKey.name = 'Summer Priority';
smartSortingKey.description = 'updated summer priority CSSK';
const weights = new SmartSortingKeyWeights();
weights.stock = 4;
weights.sales = 5;
weights.salesInv = 2;
weights.variantAvailabilityAdjInv = 1;
smartSortingKey.weights = weights;

const updatedSmartSortingKey = await adminApi.smartSortingKeys().updateSmartSortingKey(
  'key=summer-priority',
  smartSortingKey
);

{
  "key": "summer-priority",
  "name": "Summer Priority",
  "description": "updated summer priority CSSK",
  "isCustom": true,
  "weights": {
    "stock": 4,
    "sales": 5,
    "salesInv": 2,
    "variantAvailabilityAdjInv": 1
  }
}

Models

​
​
​

Last updated: December 02, 2026