Skip to content

Create guardrail.

POST
/backend/v1/scanners

Creates a new guardrail with the specified configuration.

Authorizations

HTTPBearer
Type
HTTP (bearer)

Request Body

application/json
JSON
{
  
"config": {
  
  
"input": "",
  
  
"scanContext": "directional",
  
  
"type": "custom"
  
},
  
"direction": "request",
  
"global": true,
  
"name": "string",
  
"published": false,
  
"tags": [
  
  
[
  
  
]
  
],
  
"vendored": false,
  
"version": {
  
  
"description": "string",
  
  
"name": "string",
  
  
"published": true,
  
  
"push": false
  
}
}

Responses

Successful Response

application/json
JSON
{
  
"id": "string"
}

Playground

Server
Authorization
Body

Samples

Powered by VitePress OpenAPI

Updated at: