Cancel a stack profile summary generation (browser session)
import requests
url = "https://api.platform.ankra.app/org/stack-profiles/summary-generations/{generation_id}/cancel"
payload = {}
headers = {
"cookie": "ankra_session=",
"X-Ankra-CSRF": "<x-ankra-csrf>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
cookie: 'ankra_session=',
'X-Ankra-CSRF': '<x-ankra-csrf>',
'Content-Type': 'application/json'
},
body: JSON.stringify({})
};
fetch('https://api.platform.ankra.app/org/stack-profiles/summary-generations/{generation_id}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.platform.ankra.app/org/stack-profiles/summary-generations/{generation_id}/cancel \
--header 'Content-Type: application/json' \
--header 'X-Ankra-CSRF: <x-ankra-csrf>' \
--cookie ankra_session= \
--data '{}'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "cancelled"
}{
"detail": "<string>",
"code": "outcome_unknown"
}Stack Profiles
Cancel a stack profile summary generation (browser session)
Requires fresh profiles.write authority and current source ownership, including after a draft edit or AI consent revocation. Accepts only an empty JSON object. Repeated cancellation is idempotent; other terminal jobs return 409. Returns cancelled only after a confirmed transaction commit. Cancellation fences later results but does not confirm physical provider cancellation or data deletion. On outcome_unknown, poll the source status before retrying.
POST
/
org
/
stack-profiles
/
summary-generations
/
{generation_id}
/
cancel
Cancel a stack profile summary generation (browser session)
import requests
url = "https://api.platform.ankra.app/org/stack-profiles/summary-generations/{generation_id}/cancel"
payload = {}
headers = {
"cookie": "ankra_session=",
"X-Ankra-CSRF": "<x-ankra-csrf>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
cookie: 'ankra_session=',
'X-Ankra-CSRF': '<x-ankra-csrf>',
'Content-Type': 'application/json'
},
body: JSON.stringify({})
};
fetch('https://api.platform.ankra.app/org/stack-profiles/summary-generations/{generation_id}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.platform.ankra.app/org/stack-profiles/summary-generations/{generation_id}/cancel \
--header 'Content-Type: application/json' \
--header 'X-Ankra-CSRF: <x-ankra-csrf>' \
--cookie ankra_session= \
--data '{}'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "cancelled"
}{
"detail": "<string>",
"code": "outcome_unknown"
}Authorizations
Browser session. Mutations also require X-Ankra-CSRF.
Headers
Must match the authenticated browser CSRF cookie.
Path Parameters
Body
application/json
Strict JSON, maximum 8192 bytes. Repeated and unknown object fields are rejected without echoing values.
The body is of type object.