Release an application's test quarantine
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/pipeline-tests/quarantine/{quarantine_id}/release"
payload = { "reason": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/applications/{application_id}/pipeline-tests/quarantine/{quarantine_id}/release', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/applications/{application_id}/pipeline-tests/quarantine/{quarantine_id}/release \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "<string>"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"test_key": "<string>",
"suite": "<string>",
"name": "<string>",
"file": "<string>",
"reason": "<string>",
"source": "manual",
"flaky_rate": 0.5,
"samples": 1,
"created_by_email": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"consecutive_passes": 1,
"released_at": "2023-11-07T05:31:56Z",
"released_by_email": "<string>",
"release_reason": "manual",
"release_note": "<string>"
}Pipelines
Release an application's test quarantine
Releases one live quarantine of the repository, so the test’s failures fail its step again. The release is audited with its optional reason. Requires pipelines.manage.
POST
/
api
/
v1
/
org
/
applications
/
{application_id}
/
pipeline-tests
/
quarantine
/
{quarantine_id}
/
release
Release an application's test quarantine
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/pipeline-tests/quarantine/{quarantine_id}/release"
payload = { "reason": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/applications/{application_id}/pipeline-tests/quarantine/{quarantine_id}/release', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/applications/{application_id}/pipeline-tests/quarantine/{quarantine_id}/release \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "<string>"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"test_key": "<string>",
"suite": "<string>",
"name": "<string>",
"file": "<string>",
"reason": "<string>",
"source": "manual",
"flaky_rate": 0.5,
"samples": 1,
"created_by_email": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"consecutive_passes": 1,
"released_at": "2023-11-07T05:31:56Z",
"released_by_email": "<string>",
"release_reason": "manual",
"release_note": "<string>"
}Authorizations
Response
The released quarantine.