Set an application's push-to-deploy setting
import requests
url = "https://platform.ankra.app/org/applications/{application_id}/auto-deploy"
payload = { "enabled": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled: true})
};
fetch('https://platform.ankra.app/org/applications/{application_id}/auto-deploy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PUT \
--url https://platform.ankra.app/org/applications/{application_id}/auto-deploy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true
}
'{
"enabled": true,
"branch": "<string>",
"latest_build_commit_sha": "<string>",
"latest_build_image_tag": "<string>",
"latest_build_observed_at": "<string>",
"latest_workflow_status": "<string>",
"latest_workflow_conclusion": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Applications
Set an application's push-to-deploy setting
Turn push-to-deploy on or off for this application. Enabling records the build currently observed as every installation’s baseline, so switching it on is not itself a deploy: only a build newer than that one is rolled out.
PUT
/
org
/
applications
/
{application_id}
/
auto-deploy
Set an application's push-to-deploy setting
import requests
url = "https://platform.ankra.app/org/applications/{application_id}/auto-deploy"
payload = { "enabled": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled: true})
};
fetch('https://platform.ankra.app/org/applications/{application_id}/auto-deploy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PUT \
--url https://platform.ankra.app/org/applications/{application_id}/auto-deploy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true
}
'{
"enabled": true,
"branch": "<string>",
"latest_build_commit_sha": "<string>",
"latest_build_image_tag": "<string>",
"latest_build_observed_at": "<string>",
"latest_workflow_status": "<string>",
"latest_workflow_conclusion": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Response
Successful Response
An application's push-to-deploy state: whether a successful build of the tracked branch redeploys it, and the newest build the platform observed on that branch.