Create a demo base stack
import requests
url = "https://api.platform.ankra.app/org/ai-environment/demo-base-stacks"
payload = {
"name": "<string>",
"profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"cookie": "ankra_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'ankra_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', profile_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://api.platform.ankra.app/org/ai-environment/demo-base-stacks', 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/ai-environment/demo-base-stacks \
--header 'Content-Type: application/json' \
--cookie ankra_session= \
--data '
{
"name": "<string>",
"profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'{
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"live_demo_count": 123,
"name": "<string>",
"namespace": "<string>",
"parameters": [
{
"name": "<string>",
"value": "<string>"
}
],
"profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "configured",
"idle_ttl_hours": 123,
"last_error": "<string>",
"last_used_at": "2023-11-07T05:31:56Z",
"profile_name": "<string>",
"profile_version": 123
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}AI Environment
Create a demo base stack
Save a new shared demo base stack in status 'configured'. Nothing reaches the cluster here - materialisation happens on the first demo launch that references it. Organisation-admin only; browser session authentication with the X-Ankra-CSRF double-submit header (no bearer twin). Secret parameter values ride as ${SECRET_SLOT:<uuid>} sentinels, never resolved values.
POST
/
org
/
ai-environment
/
demo-base-stacks
Create a demo base stack
import requests
url = "https://api.platform.ankra.app/org/ai-environment/demo-base-stacks"
payload = {
"name": "<string>",
"profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"cookie": "ankra_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'ankra_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', profile_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://api.platform.ankra.app/org/ai-environment/demo-base-stacks', 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/ai-environment/demo-base-stacks \
--header 'Content-Type: application/json' \
--cookie ankra_session= \
--data '
{
"name": "<string>",
"profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'{
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"live_demo_count": 123,
"name": "<string>",
"namespace": "<string>",
"parameters": [
{
"name": "<string>",
"value": "<string>"
}
],
"profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "configured",
"idle_ttl_hours": 123,
"last_error": "<string>",
"last_used_at": "2023-11-07T05:31:56Z",
"profile_name": "<string>",
"profile_version": 123
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Body
application/json
The create payload of a demo base stack. Secret parameter values ride as ${SECRET_SLOT:} sentinels. The literal ${BASE_STACK_NAMESPACE} in a parameter value is substituted with the base stack's stable namespace when the stack is materialised.
Response
The created base stack
One shared demo base stack: an organisation-level stack-profile designation that materialises lazily as a persistent stack in a stable ankra-demo-base-* namespace on the staging cluster. Status is one of: configured (saved, never materialised), deploying, ready, failed, deleting, deleted.