Deprecate stack profile version (browser session)
import requests
url = "https://api.platform.ankra.app/org/stack-profiles/{profile_id}/versions/{version}/deprecation"
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/{profile_id}/versions/{version}/deprecation', 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/{profile_id}/versions/{version}/deprecation \
--header 'Content-Type: application/json' \
--header 'X-Ankra-CSRF: <x-ankra-csrf>' \
--cookie ankra_session= \
--data '{}'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": 123,
"channel": "<string>",
"changelog": "<string>",
"created_by_user_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"deprecation": {
"reason": "incompatibility",
"note": "<string>",
"references": [
"<string>"
],
"deprecated_at": "2023-11-07T05:31:56Z",
"deprecated_by_user_id": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Stack Profiles
Deprecate stack profile version (browser session)
Marks a published version of a profile your organisation owns as deprecated, with a reason (incompatibility, critical_bug or cve), an optional note and up to 20 references, and returns the version. The profile’s current version cannot be deprecated; make another version current first.
POST
/
org
/
stack-profiles
/
{profile_id}
/
versions
/
{version}
/
deprecation
Deprecate stack profile version (browser session)
import requests
url = "https://api.platform.ankra.app/org/stack-profiles/{profile_id}/versions/{version}/deprecation"
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/{profile_id}/versions/{version}/deprecation', 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/{profile_id}/versions/{version}/deprecation \
--header 'Content-Type: application/json' \
--header 'X-Ankra-CSRF: <x-ankra-csrf>' \
--cookie ankra_session= \
--data '{}'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": 123,
"channel": "<string>",
"changelog": "<string>",
"created_by_user_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"deprecation": {
"reason": "incompatibility",
"note": "<string>",
"references": [
"<string>"
],
"deprecated_at": "2023-11-07T05:31:56Z",
"deprecated_by_user_id": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Body
application/json
Response
Profile version deprecated