docs
  1. Resources
  2. Product Quality Scores
  3. Update A Product Quality Score Rule

Update a product quality score rule

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

ProductQualityScores

​
ProductQualityScores Operations

Update a product quality score rule

​

This endpoint can be used to replace the rules of an existing product quality score rule. Omit masterCategoryIds to leave assignments unchanged. An empty array removes every owner. Sending masterCategoryIds on the default ruleset is rejected. isDefault is not part of the body.

Path Parameters

  • Identifier of the product quality score rule.

Body·

required
application/json

Body for creating or replacing a product quality score ruleset. masterCategoryIds is the set of master categories that will own the ruleset. Omit it to leave assignments unchanged. An empty array removes every owner.

  • Attribute group weights. At least one and at most 20.

    Properties: 2
  • Master category ids that will own this ruleset. Descendants are not sent. Duplicate ids are stored once. Not accepted on the default ruleset.

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for put/product-quality-scores/rules/{ruleId}
const rule = {
  rules: [
    {
      attributeGroupName: 'sizeFlag',
      weight: 6
    }
  ],
  masterCategoryIds: [1]
};

const response = await client.apis.ProductQualityScores.updateProductQualityScoreRule({ruleId: 2}, {requestBody: rule});
const updatedProductQualityScoreRule = response.body;

{
  "id": 2,
  "isDefault": false,
  "rules": [
    {
      "attributeGroupName": "sizeFlag",
      "weight": 6
    }
  ],
  "masterCategoryIds": [
    1
  ],
  "createdAt": "2026-09-07T09:00:00+00:00",
  "updatedAt": "2026-09-08T10:15:00+00:00"
}

Models

​
​
​
​

Last updated: December 02, 2026