Retrain guardrail model
Start a new training of the model from a labelled JSONL file; the serving run keeps serving until the new one completes
Path parameters
id
Request
This endpoint expects a multipart form.
file
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
Location
Response
Created
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
503
Service Unavailable Error