Validate a stack profile draft
import requests
url = "https://platform.ankra.app/api/v1/org/stack-profiles/drafts/{draft_id}/validate"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/stack-profiles/drafts/{draft_id}/validate', 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/drafts/{draft_id}/validate \
--header 'Authorization: Bearer <token>'{
"valid": true,
"issues": [
{
"resource_name": "<string>",
"kind": "<string>",
"key": "<string>",
"message": "<string>",
"paths": [
"<string>"
]
}
],
"warnings": [
"<string>"
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Stack Profiles
Validate a stack profile draft
Runs the publish checks on a draft without publishing it. valid reflects the blocking issues only; warnings lists non-blocking findings publish would also report.
POST
/
api
/
v1
/
org
/
stack-profiles
/
drafts
/
{draft_id}
/
validate
Validate a stack profile draft
import requests
url = "https://platform.ankra.app/api/v1/org/stack-profiles/drafts/{draft_id}/validate"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/stack-profiles/drafts/{draft_id}/validate', 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/drafts/{draft_id}/validate \
--header 'Authorization: Bearer <token>'{
"valid": true,
"issues": [
{
"resource_name": "<string>",
"kind": "<string>",
"key": "<string>",
"message": "<string>",
"paths": [
"<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.