Cancels an ongoing promotion to an environment and returns the cancellation status.
cURL
curl --request POST \ --url https://api.baseten.co/v1/models/{model_id}/environments/{env_name}/cancel_promotion \ --header "Authorization: Api-Key $BASETEN_API_KEY"
{ "status": "CANCELED", "message": "Promotion to production was successfully canceled." }
You must specify the scheme 'Api-Key' in the Authorization header. For example, Authorization: Api-Key <Your_Api_Key>
Authorization: Api-Key <Your_Api_Key>
The response to a request to cancel a promotion.
Status of the request to cancel a promotion. Can be CANCELED or RAMPING_DOWN.
CANCELED
RAMPING_DOWN
A message describing the status of the request to cancel a promotion
Was this page helpful?