GET
/
v1
/
rule-groups
/
?ruleset_id=
{ruleset_id}
Get ruleset details
curl --request GET \
  --url 'https://marketplace-api.fabric.inc/v1/rule-groups/?ruleset_id={ruleset_id}' \
  --header 'Authorization: Bearer <token>'
{
  "count": 100,
  "next": "https://api.example.org/demo/{retailer_id}/?page=5",
  "previous": "https://api.example.org/demo/{retailer_id}/?page=3",
  "results": [
    {
      "id": 574,
      "name": "SKU",
      "ruleset": {
        "id": 36,
        "name": "fabric Merchant Ruleset",
        "description": "the default fabric merchant ruleset",
        "created_at": "2022-06-16T18:08:08.000Z",
        "updated_at": "2022-08-24T05:38:42.000Z"
      },
      "description": "",
      "target": null,
      "is_required": true,
      "position": 0,
      "rules": {
        "id": 574,
        "name": "SKU",
        "description": "",
        "attribute": {
          "id": 2,
          "code": "identifier",
          "name": "SKU",
          "grouping": "identifiers",
          "priority": 100,
          "description": "Product SKU or Identifier",
          "editable_by": "any",
          "type": "string",
          "units": "",
          "default_unit": null,
          "available_units": [],
          "is_bulk_editable": false
        },
        "target": null,
        "is_required": true,
        "position": 0,
        "rule_group_id": 124,
        "rule_validators": [],
        "rule_conditions": [],
        "created_at": "2022-06-16T18:08:42.000Z",
        "updated_at": "2022-06-16T18:08:42.000Z"
      },
      "created_at": "2022-06-16T18:08:42.000Z",
      "updated_at": "2022-06-16T18:08:42.000Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

ruleset_id
integer
required

The unique ruleset id. The ruleset’s ID can be retrieved from the response provided by the proposal department details endpoint.

Response

200 - application/json

OK

The response is of type object.