POST
/ratchet/redact
const url = 'http://localhost:8000/ratchet/redact';const options = {method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8000/ratchet/redact \ --header 'Content-Type: application/json' \ --data '{}'Show what the redactor would store for a piece of text. Nothing is logged or stored.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Body
object
Example generated
{}Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Response Redact Preview Ratchet Redact Post
object
Example generated
{}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}