Compare a stack profile draft
import requests
url = "https://platform.ankra.app/api/v1/org/stack-profiles/drafts/{draft_id}/diff"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/stack-profiles/drafts/{draft_id}/diff', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/stack-profiles/drafts/{draft_id}/diff \
--header 'Authorization: Bearer <token>'{
"draft_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"from_version": 123,
"changes": [
{
"key": "<string>",
"change_type": "added",
"content_hash_before": "<string>",
"content_hash_after": "<string>",
"source": "<string>"
}
],
"warnings": [
"<string>"
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Stack Profiles
Compare a stack profile draft
Shows what publishing the draft would change against the version it was opened from, after the same secret redaction publish applies. For a new-profile draft every entry reads as added.
GET
/
api
/
v1
/
org
/
stack-profiles
/
drafts
/
{draft_id}
/
diff
Compare a stack profile draft
import requests
url = "https://platform.ankra.app/api/v1/org/stack-profiles/drafts/{draft_id}/diff"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/stack-profiles/drafts/{draft_id}/diff', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/stack-profiles/drafts/{draft_id}/diff \
--header 'Authorization: Bearer <token>'{
"draft_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"from_version": 123,
"changes": [
{
"key": "<string>",
"change_type": "added",
"content_hash_before": "<string>",
"content_hash_after": "<string>",
"source": "<string>"
}
],
"warnings": [
"<string>"
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Response
Draft changes
What publishing the draft would change against the version it was opened from. profile_id and from_version are null for a new-profile draft.