PUT
/ratchet/admin/settings
const url = 'http://localhost:8000/ratchet/admin/settings';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '"example"'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url http://localhost:8000/ratchet/admin/settings \ --header 'Content-Type: application/json' \ --data '"example"'Set the runtime audit rate (body {audit_rate, reason, force}; audit_rate 0 to 1, or null for
RATCHET_AUDIT_RATE). 0 while a canary is in flight needs force.
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Request Body
Section titled “Request Body”Media typeapplication/json
Body
Example generated
exampleResponses
Section titled “Responses”Successful Response
Media typeapplication/json
Response Admin Settings Ratchet Admin Settings Put
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" } ]}