docs
  1. Resources
  2. Product Quality Scores
  3. Attach A Category To A Product Quality Score Rule

Attach a category to 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

​

Attach a category to a product quality score rule

​

This endpoint can be used to make one master category an owner of a product quality score rule. Other owners are left in place. The response lists owner category ids only.

Path Parameters

  • Identifier of the product quality score rule.

  • Identifier of the master category.

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for put/product-quality-scores/rules/{ruleId}/categories/{categoryId}
const response = await client.apis.ProductQualityScores.attachProductQualityScoreRuleCategory({
  ruleId: 2,
  categoryId: 4
});
const productQualityScoreRule = 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-08T10:15:00+00:00"
}

Models

​
​
​

Last updated: December 02, 2026