Skip to navigation

Create guardrail model

View as Markdown
Create a guardrail model and start its first training run from a labelled JSONL file

Request

This endpoint expects a multipart form.
namestringRequired0-255 characters
descriptionstringRequired0-1000 characters
fileobjectRequired

JSON Lines in UTF-8, one {“text”: ”…”, “label”: “yes” | “no”} object per line, yes meaning the text violates. The deployment sets the limits; by default 20 to 50,000 rows, at least 5 per label, up to 12,000 characters each, 50 MB

Response headers

Locationstring

Response

Created

Errors

400
Bad Request Error
403
Forbidden Error
409
Conflict Error
429
Too Many Requests Error
503
Service Unavailable Error