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

Create 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

Create a product quality score rule

​

This endpoint can be used to create a custom product quality score rule. The new ruleset is stored with isDefault false. rules is required. masterCategoryIds is optional and lists the categories that will own the ruleset.

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 post/product-quality-scores/rules
const rule = {
  rules: [
    {
      attributeGroupName: 'sizeFlag',
      weight: 8
    }
  ],
  masterCategoryIds: [1, 4]
};

const response = await client.apis.ProductQualityScores.createProductQualityScoreRule({}, {requestBody: rule});
const createdProductQualityScoreRule = response.body;

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

Models

​
​
​
​

Last updated: December 02, 2026