POST
/
guard-rails
curl --request POST \
  --url https://app.docs.bynesoft.com/api/users/guard-rails \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "sourceFabric": {
    "name": "promptInjectionValidator",
    "config": {
      "kb": "<string>",
      "cosineSimilarityScoreThreshold": 0
    }
  },
  "responseBlocking": true
}'
{
  "id": "<string>",
  "name": "<string>",
  "dateCreated": "<string>"
}

Authorizations

X-API-Key
string
header
required

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.