Upgrade an application's generated workflow
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/upgrade-workflow"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/applications/{application_id}/upgrade-workflow', 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}/upgrade-workflow \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "<string>",
"pull_request_url": "<string>",
"already_configured": true
}Applications
Upgrade an application's generated workflow
Opens a pull request that brings the application’s generated GitHub workflow up to the current template. Needs applications.write. Answers already_configured when nothing needs changing.
POST
/
api
/
v1
/
org
/
applications
/
{application_id}
/
upgrade-workflow
Upgrade an application's generated workflow
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/upgrade-workflow"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/applications/{application_id}/upgrade-workflow', 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}/upgrade-workflow \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "<string>",
"pull_request_url": "<string>",
"already_configured": true
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The application's id.