Skip to main content
POST
Create or overwrite a skill gate rule

Authorizations

Authorization
string
header
required

Runtime context-key (rctx_*) issued by the Ravi gateway. Required for every non-open scope. Bootstrap the first key with ravi daemon init-admin-key; rotate, derive, and revoke via the ravi context family. Specs: runtime/context-keys, sdk/auth.

Body

application/json
id
string
required

Rule id. Use a default id to override it, or a new id for a custom rule.

skill
string
required

Skill name loaded by this gate

command
string

Exact shell command

commandPrefix
string

Shell command prefix

commandRegex
string

Regex against shell command text

groupRegex
string

Alias for --pattern

pattern
string

Regex against normalized Ravi group/tool names

tool
string

Exact runtime tool name

toolPrefix
string

Runtime tool name prefix

toolRegex
string

Regex against runtime tool names

Response

Success — no @Returns schema declared; payload shape is loose.

The response is of type object.