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 scalar = new Scalar({
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await scalar.rules.listRulesets({
namespace: "<value>",
});
console.log(result);
}
run();
[
{
"uid": "string",
"title": "",
"description": "",
"slug": "string",
"namespace": "string",
"isPrivate": false
}
]