Create GuardRail.
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>"
}
Successful Response
The response is of type object
.
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>"
}
Create GuardRail.
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>"
}
Successful Response
The response is of type object
.
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>"
}