Cancel a stack profile summary generation
import requests
url = "https://platform.ankra.app/api/v1/org/stack-profiles/summary-generations/{generation_id}/cancel"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://platform.ankra.app/api/v1/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://platform.ankra.app/api/v1/org/stack-profiles/summary-generations/{generation_id}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "cancelled"
}{
"detail": "<string>",
"code": "outcome_unknown"
}Stack Profiles
Cancel a stack profile summary generation
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
/
api
/
v1
/
org
/
stack-profiles
/
summary-generations
/
{generation_id}
/
cancel
Cancel a stack profile summary generation
import requests
url = "https://platform.ankra.app/api/v1/org/stack-profiles/summary-generations/{generation_id}/cancel"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://platform.ankra.app/api/v1/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://platform.ankra.app/api/v1/org/stack-profiles/summary-generations/{generation_id}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "cancelled"
}{
"detail": "<string>",
"code": "outcome_unknown"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
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.