List all rules
List all rulesets in a namespace.
Path Parameters
- Type: stringnamespacerequired
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 listRulesets = await client.rules.listRulesets('namespace');
console.log(listRulesets);
[
{
"uid": "nanoid()",
"title": "",
"description": "",
"slug": "randomManagedDocSlug()",
"namespace": "string",
"isPrivate": false
}
]