Promote baseline env
curl --request POST \
--url http://127.0.0.1:4100/api/projects/{id}/baselines/promote \
--header 'Content-Type: application/json' \
--header 'x-alibi-api-key: <api-key>' \
--data '
{
"toEnv": "<string>"
}
'import requests
url = "http://127.0.0.1:4100/api/projects/{id}/baselines/promote"
payload = { "toEnv": "<string>" }
headers = {
"x-alibi-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-alibi-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({toEnv: '<string>'})
};
fetch('http://127.0.0.1:4100/api/projects/{id}/baselines/promote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"error": "<string>"
}Baselines
Promote baseline env
POST
/
projects
/
{id}
/
baselines
/
promote
Promote baseline env
curl --request POST \
--url http://127.0.0.1:4100/api/projects/{id}/baselines/promote \
--header 'Content-Type: application/json' \
--header 'x-alibi-api-key: <api-key>' \
--data '
{
"toEnv": "<string>"
}
'import requests
url = "http://127.0.0.1:4100/api/projects/{id}/baselines/promote"
payload = { "toEnv": "<string>" }
headers = {
"x-alibi-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-alibi-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({toEnv: '<string>'})
};
fetch('http://127.0.0.1:4100/api/projects/{id}/baselines/promote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"error": "<string>"
}