import requests
url = "https://api.platform.ankra.app/org/applications/{application_id}/autonomy-pause"
headers = {"cookie": "ankra_session="}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/applications/{application_id}/autonomy-pause', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://api.platform.ankra.app/org/applications/{application_id}/autonomy-pause \
--cookie ankra_session={
"application_id": "<string>",
"paused": true,
"paused_at": "2023-11-07T05:31:56Z",
"paused_by": "<string>",
"paused_by_name": "<string>",
"paused_by_kind": "member",
"reason": "<string>"
}{
"detail": "<string>"
}Resume Ankra for an application (browser session)
Lifts the application’s pause, so what Ankra does unasked on its placements runs again under the application’s own autonomy setting. Resuming an application that is not paused changes nothing and answers its current state. Each change is audited with who made it and the pause it lifted. Requires applications.write.
import requests
url = "https://api.platform.ankra.app/org/applications/{application_id}/autonomy-pause"
headers = {"cookie": "ankra_session="}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/applications/{application_id}/autonomy-pause', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://api.platform.ankra.app/org/applications/{application_id}/autonomy-pause \
--cookie ankra_session={
"application_id": "<string>",
"paused": true,
"paused_at": "2023-11-07T05:31:56Z",
"paused_by": "<string>",
"paused_by_name": "<string>",
"paused_by_kind": "member",
"reason": "<string>"
}{
"detail": "<string>"
}Authorizations
Response
The application's pause as the request left it
Who paused the application, by name: a member's profile name, else their email, or a service account's name, as last_set.by.name on GET /org/applications/{application_id}/autonomy. Null when the application is not paused, and for every paused_by_kind but member and service_account.
Who paused the application, by kind, as last_set.by.kind on GET /org/applications/{application_id}/autonomy: not_recorded when the pause recorded nobody. Null when the application is not paused. Null on a paused application says nothing about who paused it.
member, ankra, service_account, former_member, not_recorded