import requests
url = "https://platform.ankra.app/org/ai-environment/demo-base-stacks"
payload = {
"name": "<string>",
"profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
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({name: '<string>', profile_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://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://platform.ankra.app/org/ai-environment/demo-base-stacks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--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>"
}
]
}Create a demo base stack
import requests
url = "https://platform.ankra.app/org/ai-environment/demo-base-stacks"
payload = {
"name": "<string>",
"profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
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({name: '<string>', profile_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://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://platform.ankra.app/org/ai-environment/demo-base-stacks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--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
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
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.
A lowercase DNS label of at most 30 characters; immutable once created (it derives the stable namespace).
Between 1 and 720 hours; null disables the idle TTL.
Show child attributes
Show child attributes
Null tracks the profile's current version.
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.
The number of non-destroyed demos referencing this base stack; deletion is refused while it is non-zero.
Show child attributes
Show child attributes
configured, deploying, ready, failed, deleting, deleted Idle hours after which the maintainer loop tears the stack down; null disables the idle TTL.
Denormalized onto reads only (never persisted).
Null tracks the profile's current version.