List platform builds
import requests
url = "https://platform.ankra.app/org/applications/{application_id}/builds"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/org/applications/{application_id}/builds', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/org/applications/{application_id}/builds \
--header 'Authorization: Bearer <token>'{
"builds": [
{
"id": "<string>",
"component": "<string>",
"head_sha": "<string>",
"ref": "<string>",
"reason": "<string>",
"recipe": "<string>",
"status": "<string>",
"image_ref": "<string>",
"error_class": "<string>",
"error_message": "<string>",
"started_at": "<string>",
"finished_at": "<string>",
"created_at": "<string>"
}
],
"capped": true
}{
"detail": "<string>"
}applications
List platform builds
The application’s platform builds, newest first, capped at 50 with the cap reported - a truncated listing that does not say so reads as complete. Answers 404 for every organisation without the platform_builds flag.
GET
/
org
/
applications
/
{application_id}
/
builds
List platform builds
import requests
url = "https://platform.ankra.app/org/applications/{application_id}/builds"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/org/applications/{application_id}/builds', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/org/applications/{application_id}/builds \
--header 'Authorization: Bearer <token>'{
"builds": [
{
"id": "<string>",
"component": "<string>",
"head_sha": "<string>",
"ref": "<string>",
"reason": "<string>",
"recipe": "<string>",
"status": "<string>",
"image_ref": "<string>",
"error_class": "<string>",
"error_message": "<string>",
"started_at": "<string>",
"finished_at": "<string>",
"created_at": "<string>"
}
],
"capped": true
}{
"detail": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.