Read a platform build request (browser session)
import requests
url = "https://api.platform.ankra.app/org/applications/{application_id}/builds/requests/{request_id}"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/applications/{application_id}/builds/requests/{request_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.platform.ankra.app/org/applications/{application_id}/builds/requests/{request_id} \
--cookie ankra_session={
"request_id": "<string>",
"component": "<string>",
"head_sha": "<string>",
"ref": "<string>",
"reason": "<string>",
"status": "<string>",
"build_id": "<string>",
"claimed_at": "<string>",
"created_at": "<string>"
}{
"detail": "<string>"
}Applications
Read a platform build request (browser session)
Read one queued build request. Queueing a build answers with a request id before there is a build to read - the build row is created when the scheduler claims the request - so this is how a caller follows that gap: status is pending until the claim, and build_id names the build from then on. Answers 404 for every organisation without the platform_builds flag. Browser session authentication.
GET
/
org
/
applications
/
{application_id}
/
builds
/
requests
/
{request_id}
Read a platform build request (browser session)
import requests
url = "https://api.platform.ankra.app/org/applications/{application_id}/builds/requests/{request_id}"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/applications/{application_id}/builds/requests/{request_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.platform.ankra.app/org/applications/{application_id}/builds/requests/{request_id} \
--cookie ankra_session={
"request_id": "<string>",
"component": "<string>",
"head_sha": "<string>",
"ref": "<string>",
"reason": "<string>",
"status": "<string>",
"build_id": "<string>",
"claimed_at": "<string>",
"created_at": "<string>"
}{
"detail": "<string>"
}Authorizations
Response
Successful Response