getv1RulesetsNamespace
List all rules
Get a list of all rulesets for the namespace
Path Parameters
- Type: string
namespace required
Responses
- Type: array object[]
200 Default Response
- Type: string
description default:"" - Type: boolean
is Private default:false - Type: string
namespace min length:3max length:50Pattern: ^[a-zA-Z0-9-_]+$required - Type: string
slug min length:3max length:60Pattern: ^[a-z](?:[a-z0-9-]*[a-z0-9])?$default:"select-vapor-uw2trbi" - Type: string
title max length:100default:"" - Type: string
uid min length:5default:"IvAH525rwBfOMVz0QrKDo"
- Type: object
400 - Type: string
code required - Type: string
message required
- Type: object
401 - Type: string
code required - Type: string
message required
- Type: object
403 - Type: string
code required - Type: string
message required
- Type: object
404 - Type: string
code required - Type: string
message required
- Type: object
422 - Type: string
code required - Type: string
message required
- Type: object
500 - Type: string
code required - Type: string
message required
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.getv1RulesetsNamespace({
namespace: "<value>",
});
console.log(result);
}
run();
[
{
"uid": "IvAH525rwBfOMVz0QrKDo",
"title": "",
"description": "",
"slug": "select-vapor-uw2trbi",
"namespace": "string",
"isPrivate": false
}
]