POST
/ratchet/admin/versions/{vid}/promote
const url = 'http://localhost:8000/ratchet/admin/versions/1/promote';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/promote \ --header 'Content-Type: application/json' \ --data '"example"'Promote a version (body {reason, to: canary|live, traffic_pct, force, load_adapter}): to a canary stage, or to
live over the live version, which is retired in the same transaction.
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 Promote Ratchet Admin Versions Vid Promote 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" } ]}