List all rules

​

List all rulesets in a namespace.

Path Parameters

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for get/v1/rulesets/{namespace}
import Scalar from '@scalar/sdk';

const client = new Scalar({
  bearerAuth: process.env['BEARER_AUTH'], // defaults to the BEARER_AUTH env var
});

const rule = await client.rules.listRulesets('namespace');

console.log(rule);
[
  {
    "uid": "nanoid()",
    "title": "",
    "description": "",
    "slug": "randomManagedDocSlug()",
    "namespace": "string",
    "isPrivate": false
  }
]