POST
/ratchet/admin/versions/{vid}/rollback
const url = 'http://localhost:8000/ratchet/admin/versions/1/rollback';const options = { method: 'POST', 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 POST \ --url http://localhost:8000/ratchet/admin/versions/1/rollback \ --header 'Content-Type: application/json' \ --data '"example"'Roll a canary back (body {reason}): its traffic returns to the live version, or the teacher.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”vid
required
Vid
integer
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 Rollback Ratchet Admin Versions Vid Rollback 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" } ]}