Rebase baseline
curl --request POST \
--url http://127.0.0.1:4100/api/projects/{id}/baselines/rebase \
--header 'Content-Type: application/json' \
--header 'x-alibi-api-key: <api-key>' \
--data '
{
"fromBaselineId": "<string>",
"snapshot": {},
"label": "<string>",
"note": "<string>"
}
'import requests
url = "http://127.0.0.1:4100/api/projects/{id}/baselines/rebase"
payload = {
"fromBaselineId": "<string>",
"snapshot": {},
"label": "<string>",
"note": "<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({fromBaselineId: '<string>', snapshot: {}, label: '<string>', note: '<string>'})
};
fetch('http://127.0.0.1:4100/api/projects/{id}/baselines/rebase', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"error": "<string>"
}Baselines
Rebase baseline
POST
/
projects
/
{id}
/
baselines
/
rebase
Rebase baseline
curl --request POST \
--url http://127.0.0.1:4100/api/projects/{id}/baselines/rebase \
--header 'Content-Type: application/json' \
--header 'x-alibi-api-key: <api-key>' \
--data '
{
"fromBaselineId": "<string>",
"snapshot": {},
"label": "<string>",
"note": "<string>"
}
'import requests
url = "http://127.0.0.1:4100/api/projects/{id}/baselines/rebase"
payload = {
"fromBaselineId": "<string>",
"snapshot": {},
"label": "<string>",
"note": "<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({fromBaselineId: '<string>', snapshot: {}, label: '<string>', note: '<string>'})
};
fetch('http://127.0.0.1:4100/api/projects/{id}/baselines/rebase', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"error": "<string>"
}Authorizations
ApiKeyAuthBearerAuth
Body
application/json
Response
Rebased
The response is of type object.