Creates a logical Template together with its initial Build. The initial
Build is created and started from the required build definition in the
same request. A dockerfile that references an uploaded file
({{file:...}}) cannot be used here (400): create the Template without
build, upload the file, then start the waiting Build.
Idempotency-Key is required and acts as the idempotency key because Template
creation can complete after an upstream timeout; a keyless retry would build a
second Template. Repeating the request with identical parameters replays the
same Template/Build (with Idempotency-Replayed: true); a different body under
the same key returns 400 Sandbox.IdempotentParameterMismatch; after the
Template is deleted the key answers 409 Sandbox.IdempotentKeyConsumed. Keys
are remembered for 24 hours. (X-Request-ID is trace-only and server-generated.)
resources selects a catalog preset, e.g.
{"type":"preset","product":"gmi.sandbox.x-large"}. The product
value is the catalog SKU (see GET /api/v2/products); the service
resolves the active entry from the product catalog.
API Key or Access Token, always sent as Authorization: Bearer <token>. The gateway recognizes the token type automatically.
Headers
Idempotency-Key
string
required
Caller-generated key that makes the mutation safe to retry (a UUID is
recommended). Matched byte-for-byte: 1-64 printable ASCII characters,
no whitespace. The same key with a different request body returns 400
Sandbox.IdempotentParameterMismatch. Echoed on responses; replays add
Idempotency-Replayed: true. Keys are remembered for 24 hours.
Required string length: 1 - 64
Body
application/json
name
string
required
Organization-scoped Template display name.
Required string length: 1 - 64
Pattern: ^[A-Za-z0-9_-]+$
resources
object
required
Resource values are selected by catalog product SKU
(GET /api/v2/products); the service resolves the active entry from
the product catalog.
Show child attributes
description
string
Human-readable Template description.
Maximum string length: 256
idc_name
string
IDC that permanently owns the Template. Optional: omitted, empty, and whitespace-only values are equivalent — the organization's configured default data center is used (maintained by the platform administrator; the same setting used by sandbox creation). If the organization has no default configured, the request returns 400. If the effective data center is under maintenance, the request returns 409 IDC.UnderMaintenance.
labels
object
User-defined labels used for filtering.
Show child attributes
build
object
Initial Build definition created and started with the Template
(combined flow, every IDC supports it). A file_context cannot be
attached here; use the split flow when files are required. Omitting
build selects the split flow: the Template and a waiting
initial Build are created without starting anything, and the Build
is started later via POST /templates/{template_id}/builds/{id}.
The split flow is not supported in every IDC; unsupported IDCs
reject it with 422.
Show child attributes
Response
The Template record is created and immediately addressable: GET /templates/{id} works right away, and a failed initial Build
leaves a rebuildable Template rather than erasing it. Build
readiness is reported by status, not by the status code.
request_id
string
required
HTTP request correlation identifier.
data
object
required
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"GMI Cloud Documentation","description":"Inference Endpoints, GPU Compute, AI Workflows, and Agent Deployment","colors":{"primary":"#6e7a0e","light":"#DDEA4E","dark":"#DDEA4E"},"logo":{"light":"https://mintcdn.com/gmicloud/NMovxHyNviV7LUYd/logo/gmi-cloud-logo.svg?fit=max\u0026auto=format\u0026n=NMovxHyNviV7LUYd\u0026q=85\u0026s=17a2b497b7719739248dfca2ae9d6c4a","dark":"https://mintcdn.com/gmicloud/NMovxHyNviV7LUYd/logo/gmi-logo-white.svg?fit=max\u0026auto=format\u0026n=NMovxHyNviV7LUYd\u0026q=85\u0026s=aa77416cbe67a81b8e7029a8425d31e9"},"favicon":{"light":"https://mintcdn.com/gmicloud/np5vsfVwdGGHAKEu/favicon.ico?fit=max\u0026auto=format\u0026n=np5vsfVwdGGHAKEu\u0026q=85\u0026s=ceee7fb6e73ccace00b3b7cf8b040dc3","dark":"https://mintcdn.com/gmicloud/np5vsfVwdGGHAKEu/favicon.ico?fit=max\u0026auto=format\u0026n=np5vsfVwdGGHAKEu\u0026q=85\u0026s=ceee7fb6e73ccace00b3b7cf8b040dc3"},"navbar":{"links":[{"href":"https://discord.gg/TkBT7r2D97","label":"Discord"},{"href":"https://github.com/GMISWE","label":"GitHub"},{"href":"https://www.gmicloud.ai/contact#sales","label":"Support"}],"primary":{"type":"button","label":"Open Console","href":"https://console.gmicloud.ai/"}},"footer":{"socials":{"discord":"https://discord.gg/TkBT7r2D97","x":"https://x.com/gmi_cloud","github":"https://github.com/GMISWE","linkedin":"https://www.linkedin.com/company/gmi-cloud-ai","youtube":"https://www.youtube.com/@GMICloud"}},"fonts":{"family":"https://fonts.googleapis.com/css2?family=DM+Sans"},"integrations":{"gtm":{"tagId":"GTM-P5WZVMXP"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"gmicloud","hasAudioNarration":false,"actualSubdomain":"gmicloud","customDomains":["docs.gmicloud.ai"],"gitSource":{"type":"gitlab","owner":"product-center","repo":"mintlify-doc-site","deployBranch":"main","contentDirectory":"","isPrivate":true,"projectId":73773841,"mountPath":"","label":""},"entitlements":{},"buildId":"6aee242c098749e3259feefa","clientVersion":"0.0.4138","searchFilterCounts":[{"language":"default","tag":"Guides","count":237},{"language":"default","tag":"Model Quickstarts","count":223},{"language":"default","tag":"Video","count":95},{"language":"default","tag":"API Reference","count":77},{"language":"default","tag":"Text","count":75},{"language":"default","tag":"GMI Agentbox","count":65},{"language":"default","tag":"GMI Studio","count":46},{"language":"default","tag":"Compute Service APIs","count":41},{"language":"default","tag":"Node Reference","count":38},{"language":"default","tag":"Sandbox APIs","count":37}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"a:has(>span.bg-primary-dark) .text-white,a:has(>span.bg-primary-dark) svg{color:#000!important}"}],"page":{"pagePath":"agentbox-api/sandboxtemplate/create-a-template-and-start-its-initial-build","slug":"/agentbox-api/sandboxtemplate/create-a-template-and-start-its-initial-build","pageMetadata":{"title":"Create a Template and start its initial Build","description":"Creates a logical Template together with its initial Build. The initial\nBuild is created and started from the required `build` definition in the\nsame request. A dockerfile that references an uploaded file\n(`{{file:...}}`) cannot be used here (400): create the Template without\n`build`, upload the file, then start the waiting Build.\n\n`Idempotency-Key` is required and acts as the idempotency key because Template\ncreation can complete after an upstream timeout; a keyless retry would build a\nsecond Template. Repeating the request with identical parameters replays the\nsame Template/Build (with `Idempotency-Replayed: true`); a different body under\nthe same key returns 400 `Sandbox.IdempotentParameterMismatch`; after the\nTemplate is deleted the key answers 409 `Sandbox.IdempotentKeyConsumed`. Keys\nare remembered for 24 hours. (`X-Request-ID` is trace-only and server-generated.)\n\n`resources` selects a catalog preset, e.g.\n`{\"type\":\"preset\",\"product\":\"gmi.sandbox.x-large\"}`. The `product`\nvalue is the catalog SKU (see `GET /api/v2/products`); the service\nresolves the active entry from the product catalog.\n","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml post /templates","href":"/agentbox-api/sandboxtemplate/create-a-template-and-start-its-initial-build","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Creates a logical Template together with its initial Build. The initial\\nBuild is created and started from the required \", _jsx(_components.code, {\n children: \"build\"\n }), \" definition in the\\nsame request. A dockerfile that references an uploaded file\\n(\", _jsx(_components.code, {\n children: \"{{file:...}}\"\n }), \") cannot be used here (400): create the Template without\\n\", _jsx(_components.code, {\n children: \"build\"\n }), \", upload the file, then start the waiting Build.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.code, {\n children: \"Idempotency-Key\"\n }), \" is required and acts as the idempotency key because Template\\ncreation can complete after an upstream timeout; a keyless retry would build a\\nsecond Template. Repeating the request with identical parameters replays the\\nsame Template/Build (with \", _jsx(_components.code, {\n children: \"Idempotency-Replayed: true\"\n }), \"); a different body under\\nthe same key returns 400 \", _jsx(_components.code, {\n children: \"Sandbox.IdempotentParameterMismatch\"\n }), \"; after the\\nTemplate is deleted the key answers 409 \", _jsx(_components.code, {\n children: \"Sandbox.IdempotentKeyConsumed\"\n }), \". Keys\\nare remembered for 24 hours. (\", _jsx(_components.code, {\n children: \"X-Request-ID\"\n }), \" is trace-only and server-generated.)\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.code, {\n children: \"resources\"\n }), \" selects a catalog preset, e.g.\\n\", _jsx(_components.code, {\n children: \"{\\\"type\\\":\\\"preset\\\",\\\"product\\\":\\\"gmi.sandbox.x-large\\\"}\"\n }), \". The \", _jsx(_components.code, {\n children: \"product\"\n }), \"\\nvalue is the catalog SKU (see \", _jsx(_components.code, {\n children: \"GET /api/v2/products\"\n }), \"); the service\\nresolves the active entry from the product catalog.\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a Template and start its initial Build","description":"Creates a logical Template together with its initial Build. The initial\nBuild is created and started from the required `build` definition in the\nsame request. A dockerfile that references an uploaded file\n(`{{file:...}}`) cannot be used here (400): create the Template without\n`build`, upload the file, then start the waiting Build.\n\n`Idempotency-Key` is required and acts as the idempotency key because Template\ncreation can complete after an upstream timeout; a keyless retry would build a\nsecond Template. Repeating the request with identical parameters replays the\nsame Template/Build (with `Idempotency-Replayed: true`); a different body under\nthe same key returns 400 `Sandbox.IdempotentParameterMismatch`; after the\nTemplate is deleted the key answers 409 `Sandbox.IdempotentKeyConsumed`. Keys\nare remembered for 24 hours. (`X-Request-ID` is trace-only and server-generated.)\n\n`resources` selects a catalog preset, e.g.\n`{\"type\":\"preset\",\"product\":\"gmi.sandbox.x-large\"}`. The `product`\nvalue is the catalog SKU (see `GET /api/v2/products`); the service\nresolves the active entry from the product catalog.\n","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml post /templates","href":"/agentbox-api/sandboxtemplate/create-a-template-and-start-its-initial-build","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/gmicloud/fa3784330bb16240/syft.js"],"openApiReferenceData":{"operation":{"tags":["SandboxTemplate"],"summary":"Create a Template and start its initial Build","description":"Creates a logical Template together with its initial Build. The initial\nBuild is created and started from the required `build` definition in the\nsame request. A dockerfile that references an uploaded file\n(`{{file:...}}`) cannot be used here (400): create the Template without\n`build`, upload the file, then start the waiting Build.\n\n`Idempotency-Key` is required and acts as the idempotency key because Template\ncreation can complete after an upstream timeout; a keyless retry would build a\nsecond Template. Repeating the request with identical parameters replays the\nsame Template/Build (with `Idempotency-Replayed: true`); a different body under\nthe same key returns 400 `Sandbox.IdempotentParameterMismatch`; after the\nTemplate is deleted the key answers 409 `Sandbox.IdempotentKeyConsumed`. Keys\nare remembered for 24 hours. (`X-Request-ID` is trace-only and server-generated.)\n\n`resources` selects a catalog preset, e.g.\n`{\"type\":\"preset\",\"product\":\"gmi.sandbox.x-large\"}`. The `product`\nvalue is the catalog SKU (see `GET /api/v2/products`); the service\nresolves the active entry from the product catalog.\n","operationId":"createTemplate","parameters":["5d77e1e4-7671-44ba-9d51-12d9cc23a7f3"],"requestBody":"fb65f1ec-0e34-4c5d-813e-a9ed558e8c82","responses":{"201":"6ab03e79-d124-46a9-92b5-a3e9f7dcf216","400":"c9e0b6a7-3b27-4674-9c23-5656235d5099","401":"402712ac-4e35-4030-8810-f6b1b7cde27f","403":"ae388d44-56bd-402e-8b8e-cbea9788ac09","409":"42ffa774-fec8-4e6a-9c8f-c390b5c1f770","422":"56f0d190-fcc7-4fdc-b8a7-a32d7e1e4878","429":"bbf9f987-7514-4e9d-bb1d-377c37cad31a","499":"1006b81a-775b-4d08-8824-0ddecb8c0a2f","500":"faeffc48-045c-4a0e-911f-b0a163836a8c","502":"53f24d2d-aad6-4fdc-a711-d9c7275c8a2a","504":"27cf81e8-b5b4-4bdd-bb92-b84ec024cf1c"},"method":"post","type":"path","servers":["f4224fd0-c6e4-4efe-8420-8b23a5d9c9bb"],"security":["79078e5c-3ec2-43f2-9339-906a68febafe"],"path":"/templates","baseUrlOptions":["https://console.gmicloud.ai/api/v2"],"title":"Create a Template and start its initial Build","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"5d77e1e4-7671-44ba-9d51-12d9cc23a7f3":{"name":"Idempotency-Key","in":"header","required":true,"description":"Caller-generated key that makes the mutation safe to retry (a UUID is\nrecommended). Matched byte-for-byte: 1-64 printable ASCII characters,\nno whitespace. The same key with a different request body returns 400\nSandbox.IdempotentParameterMismatch. Echoed on responses; replays add\nIdempotency-Replayed: true. Keys are remembered for 24 hours.\n","schema":{"type":"string","minLength":1,"maxLength":64,"isRequired":true,"description":"Caller-generated key that makes the mutation safe to retry (a UUID is\nrecommended). Matched byte-for-byte: 1-64 printable ASCII characters,\nno whitespace. The same key with a different request body returns 400\nSandbox.IdempotentParameterMismatch. Echoed on responses; replays add\nIdempotency-Replayed: true. Keys are remembered for 24 hours.\n","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["name","resources"],"properties":{"name":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$","description":"Organization-scoped Template display name.","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"resources":{"type":"object","description":"Resource values are selected by catalog product SKU\n(`GET /api/v2/products`); the service resolves the active entry from\nthe product catalog.\n","required":["type","product"],"properties":{"type":{"type":"string","enum":["preset"],"isRequired":true,"uniqueKey":"resources.type","typeLabel":"enum\u003cstring>"},"product":{"type":"string","description":"Sandbox product specification id (catalog SKU, for example\n`gmi.sandbox.x-large`).\n","isRequired":true,"uniqueKey":"resources.product","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"resources","typeLabel":"object"},"description":{"type":"string","maxLength":256,"description":"Human-readable Template description.","uniqueKey":"description","typeLabel":"string"},"idc_name":{"type":"string","description":"IDC that permanently owns the Template. Optional: omitted, empty, and whitespace-only values are equivalent — the organization's configured default data center is used (maintained by the platform administrator; the same setting used by sandbox creation). If the organization has no default configured, the request returns 400. If the effective data center is under maintenance, the request returns 409 `IDC.UnderMaintenance`.\n","uniqueKey":"idc_name","typeLabel":"string"},"labels":{"type":"object","maxProperties":64,"description":"User-defined labels used for filtering.","additionalProperties":{"type":"string","maxLength":256,"uniqueKey":"labels.additionalProperties","typeLabel":"string"},"uniqueKey":"labels","typeLabel":"object"},"build":{"type":"object","description":"Initial Build definition created and started with the Template\n(combined flow, every IDC supports it). A `file_context` cannot be\nattached here; use the split flow when files are required. Omitting\n`build` selects the split flow: the Template and a `waiting`\ninitial Build are created without starting anything, and the Build\nis started later via `POST /templates/{template_id}/builds/{id}`.\nThe split flow is not supported in every IDC; unsupported IDCs\nreject it with 422.\n","required":["source"],"properties":{"source":{"oneOf":[{"type":"object","description":"Manual Build source. Sandbox sources use the snapshot endpoint.","required":["type","image"],"properties":{"type":{"type":"string","enum":["image"],"isRequired":true,"uniqueKey":"build.source.oneOf.0.type","typeLabel":"enum\u003cstring>"},"image":{"type":"string","minLength":1,"description":"OCI container image reference. The following distributions have\nbeen validated: Debian/Ubuntu, Fedora/CentOS Stream/Rocky Linux/\nAlmaLinux, Arch Linux, and Alpine Linux.\n","isRequired":true,"uniqueKey":"build.source.oneOf.0.image","typeLabel":"string"},"registry_credential":{"type":"object","additionalProperties":false,"required":["type","username","password"],"description":"A one-time registry credential used to pull the private image named by `image`. `username` and `password` are used only for this build request: they are never persisted and never returned in any response. The Build detail's `registry_authentication` reports only whether a credential was used and of what kind, never the username or password.","properties":{"type":{"type":"string","enum":["general"],"isRequired":true,"uniqueKey":"build.source.oneOf.0.registry_credential.type","typeLabel":"enum\u003cstring>"},"username":{"type":"string","isRequired":true,"uniqueKey":"build.source.oneOf.0.registry_credential.username","typeLabel":"string"},"password":{"type":"string","description":"Can be a password or an access token.","isRequired":true,"uniqueKey":"build.source.oneOf.0.registry_credential.password","typeLabel":"string"}},"uniqueKey":"build.source.oneOf.0.registry_credential","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"build.source.oneOf.0","typeLabel":"object"},{"type":"object","description":"Manual Build source. Sandbox sources use the snapshot endpoint.","required":["type","template_id"],"properties":{"type":{"type":"string","enum":["template"],"isRequired":true,"uniqueKey":"build.source.oneOf.1.type","typeLabel":"enum\u003cstring>"},"template_id":{"type":"string","description":"Parent GMI Template identifier in the same IDC.","isRequired":true,"uniqueKey":"build.source.oneOf.1.template_id","typeLabel":"string"},"build_id":{"type":"string","description":"Optional parent Build identifier. When omitted, the parent's\ncurrent successful Build is used.\n","uniqueKey":"build.source.oneOf.1.build_id","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"build.source.oneOf.1","typeLabel":"object"},{"type":"object","description":"Manual Build source. Sandbox sources use the snapshot endpoint.","required":["type","dockerfile"],"properties":{"type":{"type":"string","enum":["dockerfile"],"isRequired":true,"uniqueKey":"build.source.oneOf.2.type","typeLabel":"enum\u003cstring>"},"dockerfile":{"type":"string","minLength":1,"maxLength":262144,"description":"Raw Dockerfile text. Supported instructions: FROM (exactly one; no\nmulti-stage), RUN, ENV, WORKDIR, USER, COPY/ADD, CMD/ENTRYPOINT;\nEXPOSE and VOLUME are skipped; anything else is rejected with 400.\n\nA trailing backslash continues an instruction on the next line; blank\nand comment lines inside a continuation are skipped.\n\nThe Dockerfile's final USER is the runtime identity of Sandboxes unless\n`default_user` is set. A Build fails when that account cannot enter the\nfinal working directory; declare an accessible WORKDIR.\n\nCOPY/ADD sources must reference an uploaded Template file as\n`COPY {{file:\u003cfile_id>}} /dest` — local paths and URLs are\nrejected, and at most one file may be referenced per build (its\n`file_id` must also be attached via `file_context`, with\n`file_context.destination` omitted).\n\nWith a dockerfile source, the sibling `commands` and `envs` fields\nare forbidden: write RUN/ENV lines in the Dockerfile instead.\nCMD/ENTRYPOINT are extracted into the Build's start command; an\nexplicit `start_cmd` takes precedence over them.\n\nENV values are visible to subsequent build steps and are part of\nthe sandbox runtime environment, as under `docker run`; a value\npassed as `env_vars` when creating a Sandbox overrides one of the\nsame name. Do not put build-time secrets in ENV: build the Template\nfrom an image or template source and pass them in `envs`, which\nreach the build steps only.\n","isRequired":true,"uniqueKey":"build.source.oneOf.2.dockerfile","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"build.source.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"build.source","typeLabel":"object"},"default_user":{"type":"object","additionalProperties":false,"required":["username"],"description":"Runtime default identity for Sandboxes launched from this Build.\nWithout it, Sandboxes run as `docker run` would: as the Dockerfile's final\nUSER, else the image's USER, else root, in the final WORKDIR, else the\nimage's, else `/`.\nSandboxes run commands as a named account: an image USER given as a\nnumeric uid (or uid:gid) needs a matching /etc/passwd entry in the image,\notherwise the Build fails with a reason that names the USER. The group\npart is ignored.\nIt is applied after all build commands and overrides the final Dockerfile\nUSER at runtime; it does not change the identity of earlier build commands.\n\nRecommended setup for a custom account: create it in the Dockerfile, give\nit a working directory it can access, and pass its uid, for example\n`RUN useradd --uid 9999 --create-home --shell /bin/bash app`,\n`WORKDIR /home/app`, and `default_user: {username: app, uid: 9999}`.\n\n- default_user changes the identity only, not the working directory or its\n permissions. If the account cannot enter the final working directory,\n commands cannot start there and the Build may fail; declare an\n accessible WORKDIR to fix it.\n- With uid, the account must already exist with that UID and an existing\n home directory; otherwise the Build fails. The platform does not change\n UID, ownership, groups, or sudo privileges.\n- A non-root username without uid may be rejected with HTTP 422\n (Template.ProviderNotSupported); supply uid to avoid this. root may omit uid.\n- Invalid username, out-of-range uid, or root with a nonzero uid returns\n HTTP 400 (Parameter.Invalid).\n- A Build from a base template keeps the base template's user and working\n directory, as Docker FROM does; set default_user on the child Build to\n select another. Changing it requires a new Build.\n\nWhen omitted, the template's default runtime identity is used. A Build\nresponse reports the requested setting; an omitted uid stays omitted.\n","properties":{"username":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[a-z_][a-z0-9_-]{0,31}$","example":"app","isRequired":true,"uniqueKey":"build.default_user.username","typeLabel":"string"},"uid":{"type":"integer","format":"int32","minimum":0,"maximum":2147483647,"description":"UID of the account. Recommended for non-root usernames. root only accepts 0.","example":9999,"uniqueKey":"build.default_user.uid","typeLabel":"integer\u003cint32>"}},"uniqueKey":"build.default_user","typeLabel":"object"},"commands":{"type":"array","maxItems":100,"description":"Shell command strings executed sequentially during the Build. They may\nrun as a non-root account with passwordless sudo: prefix privileged\ncommands with `sudo`, and set ownership of files that the runtime\naccount must use. To control the build identity explicitly, use a\nDockerfile source with `USER` instructions, as in a regular Dockerfile.\n","items":{"type":"string","minLength":1,"maxLength":8192,"uniqueKey":"build.commands.items.[INDEX]","typeLabel":"string"},"uniqueKey":"build.commands","typeLabel":"string[]"},"envs":{"type":"object","maxProperties":256,"additionalProperties":{"type":"string","maxLength":32768,"uniqueKey":"build.envs.additionalProperties","typeLabel":"string"},"description":"Build-only environment variables; values are write-only.","uniqueKey":"build.envs","typeLabel":"object"},"build_timeout_sec":{"type":"integer","minimum":60,"maximum":3600,"description":"Wall-clock budget for this Build in seconds. Omit or null to use the\nplatform default (600). Allowed range: 60–3600. On expiry the Build\nis finalized as `error` with failure code `TemplateBuild.TimedOut`,\nits backing build in the selected IDC is cancelled, and its partial\nartifacts are reclaimed, best-effort.\n","uniqueKey":"build.build_timeout_sec","typeLabel":"integer"},"start_cmd":{"type":"string","minLength":1,"maxLength":8192,"description":"Launch command applied when Sandboxes from this Template start.","uniqueKey":"build.start_cmd","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"build","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"name":"\u003cstring>","resources":{"type":"preset","product":"\u003cstring>"},"description":"\u003cstring>","idc_name":"\u003cstring>","labels":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"6ab03e79-d124-46a9-92b5-a3e9f7dcf216":{"description":"The Template record is created and immediately addressable: `GET\n/templates/{id}` works right away, and a failed initial Build\nleaves a rebuildable Template rather than erasing it. Build\nreadiness is reported by `status`, not by the status code.\n","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["request_id","data"],"properties":{"request_id":{"type":"string","description":"HTTP request correlation identifier.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"data":{"type":"object","additionalProperties":false,"required":["id","build_id","status"],"properties":{"id":{"type":"string","description":"Created GMI Template identifier.","isRequired":true,"uniqueKey":"data.id","typeLabel":"string"},"build_id":{"type":"string","description":"Created initial or snapshot Build identifier.","isRequired":true,"uniqueKey":"data.build_id","typeLabel":"string"},"status":{"type":"string","enum":["waiting","building","ready","error"],"description":"Normalized Template Build status.","isRequired":true,"uniqueKey":"data.status","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"request_id":"\u003cstring>","data":{"id":"\u003cstring>","build_id":"\u003cstring>","status":"waiting"}}}},"exampleType":"generated"}},"exampleType":"generated"},"c9e0b6a7-3b27-4674-9c23-5656235d5099":{"description":"Invalid request parameters. Two code families are used: `Request.InvalidParameter` for request parsing and format validation (unknown or malformed body fields, malformed IDs, invalid enum values, out-of-range paging) and `Parameter.Invalid` for business validation (for example a template or IDC that cannot be found, or a `timeout` over the limit). Unknown or invalid fields inside the `params` of `POST /sandboxes/{id}/actions` are reported as `Parameter.Invalid`. Other 400 codes are specific to an operation, for example `Sandbox.SourceConflict` (both or neither of `template_id` and `snapshot_id`) and `Sandbox.IdempotentParameterMismatch` (an `Idempotency-Key` reused with different parameters). Both code families share the same HTTP status, so decide by the `code` value, not the status alone.","content":{"application/json":{"schema":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","description":"Machine-readable business error code","example":"Resource.QuotaExceeded","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error description","example":"The resource quota is not enough.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","description":"Tracing ID","example":"req-xxxx","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"trace_id":{"type":"string","description":"Server-side trace identifier for this request; quote it when reporting a problem.","uniqueKey":"trace_id","typeLabel":"string"},"details":{"type":"object","description":"Field-level error details","additionalProperties":true,"uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"Parameter.Invalid","message":"Invalid request parameters","request_id":"req-xxxx"},"examples":{"Example":{"title":"Example","value":{"code":"Parameter.Invalid","message":"Invalid request parameters","request_id":"req-xxxx"}}},"exampleType":"examples"}},"exampleType":"examples"},"402712ac-4e35-4030-8810-f6b1b7cde27f":{"description":"Unauthenticated","content":{"application/json":{"schema":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","description":"Machine-readable business error code","example":"Resource.QuotaExceeded","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error description","example":"The resource quota is not enough.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","description":"Tracing ID","example":"req-xxxx","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"trace_id":{"type":"string","description":"Server-side trace identifier for this request; quote it when reporting a problem.","uniqueKey":"trace_id","typeLabel":"string"},"details":{"type":"object","description":"Field-level error details","additionalProperties":true,"uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"Auth.Unauthorized","message":"Authentication required","request_id":"req-xxxx"},"examples":{"Example":{"title":"Example","value":{"code":"Auth.Unauthorized","message":"Authentication required","request_id":"req-xxxx"}}},"exampleType":"examples"}},"exampleType":"examples"},"ae388d44-56bd-402e-8b8e-cbea9788ac09":{"description":"The caller cannot access the organization-scoped resource.","content":{"application/json":{"schema":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","description":"Machine-readable business error code","example":"Resource.QuotaExceeded","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error description","example":"The resource quota is not enough.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","description":"Tracing ID","example":"req-xxxx","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"trace_id":{"type":"string","description":"Server-side trace identifier for this request; quote it when reporting a problem.","uniqueKey":"trace_id","typeLabel":"string"},"details":{"type":"object","description":"Field-level error details","additionalProperties":true,"uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"Resource.QuotaExceeded","message":"The resource quota is not enough.","request_id":"req-xxxx","trace_id":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"42ffa774-fec8-4e6a-9c8f-c390b5c1f770":{"description":"State conflict (`Resource.StateConflict` or an operation-specific code), or the selected IDC is under maintenance (`IDC.UnderMaintenance`): write operations are rejected until the IDC is usable again. Read operations are unaffected. A Template with the same name already exists: `Resource.AlreadyExists`.\n","content":{"application/json":{"schema":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","description":"Machine-readable business error code","example":"Resource.QuotaExceeded","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error description","example":"The resource quota is not enough.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","description":"Tracing ID","example":"req-xxxx","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"trace_id":{"type":"string","description":"Server-side trace identifier for this request; quote it when reporting a problem.","uniqueKey":"trace_id","typeLabel":"string"},"details":{"type":"object","description":"Field-level error details","additionalProperties":true,"uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"Resource.QuotaExceeded","message":"The resource quota is not enough.","request_id":"req-xxxx","trace_id":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"56f0d190-fcc7-4fdc-b8a7-a32d7e1e4878":{"description":"The request is valid but the selected IDC does not support\nthe requested capability or resolved resource specification.\n","content":{"application/json":{"schema":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","description":"Machine-readable business error code","example":"Resource.QuotaExceeded","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error description","example":"The resource quota is not enough.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","description":"Tracing ID","example":"req-xxxx","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"trace_id":{"type":"string","description":"Server-side trace identifier for this request; quote it when reporting a problem.","uniqueKey":"trace_id","typeLabel":"string"},"details":{"type":"object","description":"Field-level error details","additionalProperties":true,"uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"Resource.QuotaExceeded","message":"The resource quota is not enough.","request_id":"req-xxxx","trace_id":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"bbf9f987-7514-4e9d-bb1d-377c37cad31a":{"description":"The configured or temporary resource quota would be exceeded.","content":{"application/json":{"schema":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","description":"Machine-readable business error code","example":"Resource.QuotaExceeded","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error description","example":"The resource quota is not enough.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","description":"Tracing ID","example":"req-xxxx","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"trace_id":{"type":"string","description":"Server-side trace identifier for this request; quote it when reporting a problem.","uniqueKey":"trace_id","typeLabel":"string"},"details":{"type":"object","description":"Field-level error details","additionalProperties":true,"uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"Resource.QuotaExceeded","message":"The resource quota is not enough.","request_id":"req-xxxx","trace_id":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"1006b81a-775b-4d08-8824-0ddecb8c0a2f":{"description":"The caller canceled the current HTTP request.","content":{"application/json":{"schema":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","description":"Machine-readable business error code","example":"Resource.QuotaExceeded","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error description","example":"The resource quota is not enough.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","description":"Tracing ID","example":"req-xxxx","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"trace_id":{"type":"string","description":"Server-side trace identifier for this request; quote it when reporting a problem.","uniqueKey":"trace_id","typeLabel":"string"},"details":{"type":"object","description":"Field-level error details","additionalProperties":true,"uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"Request.Canceled","message":"Request canceled","request_id":"req-xxxx"},"examples":{"Example":{"title":"Example","value":{"code":"Request.Canceled","message":"Request canceled","request_id":"req-xxxx"}}},"exampleType":"examples"}},"exampleType":"examples"},"faeffc48-045c-4a0e-911f-b0a163836a8c":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","description":"Machine-readable business error code","example":"Resource.QuotaExceeded","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error description","example":"The resource quota is not enough.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","description":"Tracing ID","example":"req-xxxx","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"trace_id":{"type":"string","description":"Server-side trace identifier for this request; quote it when reporting a problem.","uniqueKey":"trace_id","typeLabel":"string"},"details":{"type":"object","description":"Field-level error details","additionalProperties":true,"uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"System.Internal","message":"An internal server error occurred","request_id":"req-xxxx"},"examples":{"Example":{"title":"Example","value":{"code":"System.Internal","message":"An internal server error occurred","request_id":"req-xxxx"}}},"exampleType":"examples"}},"exampleType":"examples"},"53f24d2d-aad6-4fdc-a711-d9c7275c8a2a":{"description":"An upstream Sandbox service is unavailable or returned an error.","content":{"application/json":{"schema":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","description":"Machine-readable business error code","example":"Resource.QuotaExceeded","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error description","example":"The resource quota is not enough.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","description":"Tracing ID","example":"req-xxxx","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"trace_id":{"type":"string","description":"Server-side trace identifier for this request; quote it when reporting a problem.","uniqueKey":"trace_id","typeLabel":"string"},"details":{"type":"object","description":"Field-level error details","additionalProperties":true,"uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"Resource.QuotaExceeded","message":"The resource quota is not enough.","request_id":"req-xxxx","trace_id":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"27cf81e8-b5b4-4bdd-bb92-b84ec024cf1c":{"description":"The current HTTP request exceeded the control-plane processing deadline.","content":{"application/json":{"schema":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","description":"Machine-readable business error code","example":"Resource.QuotaExceeded","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error description","example":"The resource quota is not enough.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","description":"Tracing ID","example":"req-xxxx","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"trace_id":{"type":"string","description":"Server-side trace identifier for this request; quote it when reporting a problem.","uniqueKey":"trace_id","typeLabel":"string"},"details":{"type":"object","description":"Field-level error details","additionalProperties":true,"uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"Request.Timeout","message":"Request timed out","request_id":"req-xxxx"},"examples":{"Example":{"title":"Example","value":{"code":"Request.Timeout","message":"Request timed out","request_id":"req-xxxx"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"79078e5c-3ec2-43f2-9339-906a68febafe":{"bearerAuth":{"type":"http","scheme":"bearer","description":"API Key or Access Token, always sent as `Authorization: Bearer \u003ctoken>`. The gateway recognizes the token type automatically.\n","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"f4224fd0-c6e4-4efe-8420-8b23a5d9c9bb":{"url":"https://console.gmicloud.ai/api/v2","description":"Control plane"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"API Key or Access Token, always sent as `Authorization: Bearer \u003ctoken>`. The gateway recognizes the token type automatically.\n","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API Key or Access Token, always sent as `Authorization: Bearer \u003ctoken>`. The gateway recognizes the token type automatically.\n","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-spec/sandbox_api.yaml"},"subdomain":"gmicloud","siteName":"GMI Cloud Documentation","title":"Create a Template and start its initial Build - GMI Cloud Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-30T12:03:43.887Z","originalFileLocation":"agentbox-api/sandboxtemplate/create-a-template-and-start-its-initial-build.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Creates a logical Template together with its initial Build. The initial Build is created and started from the required build definition in the same request. A dockerfile that references an uploaded file ({{file:...}}) cannot be used here (400): create the Template without build, upload the file, then start the waiting Build. Idempotency-Key is required and acts as the idempotency key because Template creation can complete after an upstream timeout; a keyless retry would build a second Template. Repeating the request with identical parameters replays the same Template/Build (with Idempotency-Replayed: true); a different body under the same key returns 400 Sandbox.IdempotentParameterMismatch; after the Template is deleted the key answers 409 Sandbox.IdempotentKeyConsumed. Keys are remembered for 24 hours. (X-Request-ID is trace-only and server-generated.) resources selects a catalog preset, e.g. {\u0026quot;type\u0026quot;:\u0026quot;preset\u0026quot;,\u0026quot;product\u0026quot;:\u0026quot;gmi.sandbox.x-large\u0026quot;}. The product value is the catalog SKU (see GET /api/v2/products); the service resolves the active entry from the product catalog.\">\u003cmeta data-mint-head name=\"application-name\" content=\"GMI Cloud Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gmicloud/3Gg7T0A9Kt6Sj64N/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/gmicloud/3Gg7T0A9Kt6Sj64N/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gmicloud/3Gg7T0A9Kt6Sj64N/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/gmicloud/3Gg7T0A9Kt6Sj64N/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/gmicloud/3Gg7T0A9Kt6Sj64N/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gmicloud/3Gg7T0A9Kt6Sj64N/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gmicloud/3Gg7T0A9Kt6Sj64N/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/gmicloud/3Gg7T0A9Kt6Sj64N/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/gmicloud/3Gg7T0A9Kt6Sj64N/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a Template and start its initial Build - GMI Cloud Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a logical Template together with its initial Build. The initial Build is created and started from the required build definition in the same request. A dockerfile that references an uploaded file ({{file:...}}) cannot be used here (400): create the Template without build, upload the file, then start the waiting Build. Idempotency-Key is required and acts as the idempotency key because Template creation can complete after an upstream timeout; a keyless retry would build a second Template. Repeating the request with identical parameters replays the same Template/Build (with Idempotency-Replayed: true); a different body under the same key returns 400 Sandbox.IdempotentParameterMismatch; after the Template is deleted the key answers 409 Sandbox.IdempotentKeyConsumed. Keys are remembered for 24 hours. (X-Request-ID is trace-only and server-generated.) resources selects a catalog preset, e.g. {\u0026quot;type\u0026quot;:\u0026quot;preset\u0026quot;,\u0026quot;product\u0026quot;:\u0026quot;gmi.sandbox.x-large\u0026quot;}. The product value is the catalog SKU (see GET /api/v2/products); the service resolves the active entry from the product catalog.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"GMI Cloud Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.gmicloud.ai/agentbox-api/sandboxtemplate/create-a-template-and-start-its-initial-build\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://gmicloud.mintlify.site/_mintlify/api/og/v2?division=SandboxTemplate\u0026amp;title=Create+a+Template+and+start+its+initial+Build\u0026amp;description=Creates+a+logical+Template+together+with+its+initial+Build.+The+initial%0ABuild+is+created+and+started+from+the+required+%60build%60+definition+in+the%0Asame+request.+A\u0026amp;theme=49fdf15c5384034a26ed5e48\u0026amp;signature=1fd0978433d2d36f1e0fa53600557fe31466f31abf54a6e875614a76731ac3f8\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a Template and start its initial Build - GMI Cloud Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a logical Template together with its initial Build. The initial Build is created and started from the required build definition in the same request. A dockerfile that references an uploaded file ({{file:...}}) cannot be used here (400): create the Template without build, upload the file, then start the waiting Build. Idempotency-Key is required and acts as the idempotency key because Template creation can complete after an upstream timeout; a keyless retry would build a second Template. Repeating the request with identical parameters replays the same Template/Build (with Idempotency-Replayed: true); a different body under the same key returns 400 Sandbox.IdempotentParameterMismatch; after the Template is deleted the key answers 409 Sandbox.IdempotentKeyConsumed. Keys are remembered for 24 hours. (X-Request-ID is trace-only and server-generated.) resources selects a catalog preset, e.g. {\u0026quot;type\u0026quot;:\u0026quot;preset\u0026quot;,\u0026quot;product\u0026quot;:\u0026quot;gmi.sandbox.x-large\u0026quot;}. The product value is the catalog SKU (see GET /api/v2/products); the service resolves the active entry from the product catalog.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://gmicloud.mintlify.site/_mintlify/api/og/v2?division=SandboxTemplate\u0026amp;title=Create+a+Template+and+start+its+initial+Build\u0026amp;description=Creates+a+logical+Template+together+with+its+initial+Build.+The+initial%0ABuild+is+created+and+started+from+the+required+%60build%60+definition+in+the%0Asame+request.+A\u0026amp;theme=49fdf15c5384034a26ed5e48\u0026amp;signature=1fd0978433d2d36f1e0fa53600557fe31466f31abf54a6e875614a76731ac3f8\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/gmicloud/3Gg7T0A9Kt6Sj64N/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"GMI Cloud Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6e7a0e\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.gmicloud.ai/agentbox-api/sandboxtemplate/create-a-template-and-start-its-initial-build\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/agentbox-api/sandboxtemplate/create-a-template-and-start-its-initial-build.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.gmicloud.ai/#organization\",\"name\":\"GMI Cloud Documentation\",\"url\":\"https://docs.gmicloud.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/gmicloud/NMovxHyNviV7LUYd/logo/gmi-cloud-logo.svg?fit=max\u0026auto=format\u0026n=NMovxHyNviV7LUYd\u0026q=85\u0026s=17a2b497b7719739248dfca2ae9d6c4a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.gmicloud.ai#website\",\"name\":\"GMI Cloud Documentation\",\"url\":\"https://docs.gmicloud.ai\",\"publisher\":{\"@id\":\"https://docs.gmicloud.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.gmicloud.ai/agentbox-api/sandboxtemplate/create-a-template-and-start-its-initial-build#webpage\",\"url\":\"https://docs.gmicloud.ai/agentbox-api/sandboxtemplate/create-a-template-and-start-its-initial-build\",\"name\":\"Create a Template and start its initial Build\",\"description\":\"Creates a logical Template together with its initial Build. The initial Build is created and started from the required build definition in the same request. A dockerfile that references an uploaded file ({{file:...}}) cannot be used here (400): create the Template without build, upload the file, then start the waiting Build. Idempotency-Key is required and acts as the idempotency key because Template creation can complete after an upstream timeout; a keyless retry would build a second Template. Repeating the request with identical parameters replays the same Template/Build (with Idempotency-Replayed: true); a different body under the same key returns 400 Sandbox.IdempotentParameterMismatch; after the Template is deleted the key answers 409 Sandbox.IdempotentKeyConsumed. Keys are remembered for 24 hours. (X-Request-ID is trace-only and server-generated.) resources selects a catalog preset, e.g. {\\\"type\\\":\\\"preset\\\",\\\"product\\\":\\\"gmi.sandbox.x-large\\\"}. The product value is the catalog SKU (see GET /api/v2/products); the service resolves the active entry from the product catalog.\",\"dateModified\":\"2026-10-30T12:03:43.887Z\",\"isPartOf\":{\"@id\":\"https://docs.gmicloud.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.gmicloud.ai/agentbox-api/sandboxtemplate/create-a-template-and-start-its-initial-build#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.gmicloud.ai/agentbox-api/sandboxtemplate/create-a-template-and-start-its-initial-build#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Sandbox APIs\",\"item\":\"https://docs.gmicloud.ai/agentbox-api/sandbox/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Endpoints\",\"item\":\"https://docs.gmicloud.ai/agentbox-api/sandbox/list-active-sandboxes\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"SandboxTemplate\",\"item\":\"https://docs.gmicloud.ai/agentbox-api/sandboxtemplate/list-the-product-catalog-unified-tenant-facing\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Create a Template and start its initial Build\",\"item\":\"https://docs.gmicloud.ai/agentbox-api/sandboxtemplate/create-a-template-and-start-its-initial-build\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.gmicloud.ai/agentbox-api/sandboxtemplate/create-a-template-and-start-its-initial-build#apireference\",\"headline\":\"Create a Template and start its initial Build\",\"name\":\"Create a Template and start its initial Build\",\"description\":\"Creates a logical Template together with its initial Build. The initial Build is created and started from the required build definition in the same request. A dockerfile that references an uploaded file ({{file:...}}) cannot be used here (400): create the Template without build, upload the file, then start the waiting Build. Idempotency-Key is required and acts as the idempotency key because Template creation can complete after an upstream timeout; a keyless retry would build a second Template. Repeating the request with identical parameters replays the same Template/Build (with Idempotency-Replayed: true); a different body under the same key returns 400 Sandbox.IdempotentParameterMismatch; after the Template is deleted the key answers 409 Sandbox.IdempotentKeyConsumed. Keys are remembered for 24 hours. (X-Request-ID is trace-only and server-generated.) resources selects a catalog preset, e.g. {\\\"type\\\":\\\"preset\\\",\\\"product\\\":\\\"gmi.sandbox.x-large\\\"}. The product value is the catalog SKU (see GET /api/v2/products); the service resolves the active entry from the product catalog.\",\"url\":\"https://docs.gmicloud.ai/agentbox-api/sandboxtemplate/create-a-template-and-start-its-initial-build\",\"mainEntityOfPage\":{\"@id\":\"https://docs.gmicloud.ai/agentbox-api/sandboxtemplate/create-a-template-and-start-its-initial-build#webpage\"},\"dateModified\":\"2026-10-30T12:03:43.887Z\",\"publisher\":{\"@id\":\"https://docs.gmicloud.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.gmicloud.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"GMI Cloud Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"GMI Cloud Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/agentbox-api/sandboxtemplate/create-a-template-and-start-its-initial-build.md","siteName":"GMI Cloud Documentation","nav":{"global":null,"tabs":[{"tab":"Get Started","pages":[{"title":"Get Started","href":""}]},{"tab":"Inference","pages":[{"title":"Inference","href":"/inference-engine/ie-intro"}]},{"tab":"GPU Compute","pages":[{"title":"GPU Compute","href":"/cluster-engine"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"tab":"GMI Studio","pages":[{"title":"GMI Studio","href":"/gmi-studio/gmi-studio-user-manual/introduction"}]},{"tab":"GMI Agentbox","groups":[{"group":"GMI Agentbox","pages":[{"title":"Overview","href":"/agentbox-marketplace/overview"},{"title":"Search and use an agent","href":"/agentbox-marketplace/search-and-use"},{"title":"Register an agent","href":"/agentbox-marketplace/register-an-agent"},{"title":"Managing your deployment","href":"/agentbox-marketplace/managing-your-deployment"},{"title":"List an agent","href":"/agentbox-marketplace/list-an-agent"},{"title":"Agents I use","href":"/agentbox-marketplace/agents-i-use"},{"title":"Verified agents","href":"/agentbox-marketplace/verified-agents"},{"title":"Handle long-running requests","href":"/agentbox-marketplace/handle-long-running-requests"}]},{"group":"Agentbox SDK","pages":[{"title":"Agentbox SDK","href":"/agentbox-sdk/overview"},{"title":"Quickstart","href":"/agentbox-sdk/quickstart"},{"title":"Agents and image builds","href":"/agentbox-sdk/agents"},{"title":"Sandboxes","href":"/agentbox-sdk/sandboxes"},{"title":"Commands and files","href":"/agentbox-sdk/commands-and-files"},{"title":"Interactive shell (Beta)","href":"/agentbox-sdk/shell"},{"title":"Snapshots","href":"/agentbox-sdk/snapshots"},{"title":"Errors and limits","href":"/agentbox-sdk/errors-and-limits"},{"title":"Python SDK reference","href":"/agentbox-sdk/python-reference"},{"title":"Go SDK reference","href":"/agentbox-sdk/go-reference"}]},{"group":"Sandbox SDK","pages":[{"title":"GMI Sandbox SDK Usage","href":"/agentbox-api/sandbox-sdk/usage"},{"title":"GMI Sandbox SDK Reference","href":"/agentbox-api/sandbox-sdk/sdk-reference"}]},{"group":"Sandbox APIs","pages":[{"title":"Sandbox API Overview","href":"/agentbox-api/sandbox/overview"},{"group":"Endpoints","pages":[{"group":"Sandbox","pages":[{"title":"List active sandboxes","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml get /sandboxes","href":"/agentbox-api/sandbox/list-active-sandboxes"},{"title":"Create a sandbox","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml post /sandboxes","href":"/agentbox-api/sandbox/create-a-sandbox"},{"title":"Get sandbox details","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml get /sandboxes/{id}","href":"/agentbox-api/sandbox/get-sandbox-details"},{"title":"Delete (kill) a sandbox","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml delete /sandboxes/{id}","href":"/agentbox-api/sandbox/delete-kill-a-sandbox"},{"title":"Update sandbox metadata","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml patch /sandboxes/{id}","href":"/agentbox-api/sandbox/update-sandbox-metadata"},{"title":"Connect to a sandbox","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml post /sandboxes/{id}/connect","href":"/agentbox-api/sandbox/connect-to-a-sandbox"},{"title":"Pause a sandbox","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml post /sandboxes/{id}/pause","href":"/agentbox-api/sandbox/pause-a-sandbox"},{"title":"Resume a paused sandbox","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml post /sandboxes/{id}/resume","href":"/agentbox-api/sandbox/resume-a-paused-sandbox"},{"title":"Execute a sandbox runtime action","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml post /sandboxes/{id}/actions","href":"/agentbox-api/sandbox/execute-a-sandbox-runtime-action"},{"title":"Set sandbox timeout","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml post /sandboxes/{id}/timeout","href":"/agentbox-api/sandbox/set-sandbox-timeout"}]},{"group":"Sandbox-Exec","pages":[{"title":"Execute a command in a sandbox","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml post /executions","href":"/agentbox-api/sandbox-exec/execute-a-command-in-a-sandbox"},{"title":"Get a sandbox execution","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml get /executions/{execution_id}","href":"/agentbox-api/sandbox-exec/get-a-sandbox-execution"},{"title":"Cancel a sandbox execution","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml post /executions/{execution_id}/cancel","href":"/agentbox-api/sandbox-exec/cancel-a-sandbox-execution"}]},{"group":"Sandbox-Shell","pages":[{"title":"Launch the sandbox interactive shell","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml post /shell","href":"/agentbox-api/sandbox-shell/launch-the-sandbox-interactive-shell"},{"title":"Attach to the sandbox shell (WebSocket)","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml get /shell/connect","href":"/agentbox-api/sandbox-shell/attach-to-the-sandbox-shell-websocket"},{"title":"Control the sandbox shell (resize / close)","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml post /shell/control","href":"/agentbox-api/sandbox-shell/control-the-sandbox-shell-resize-close"}]},{"group":"Sandbox-Files","pages":[{"title":"Download a sandbox file","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml get /files","href":"/agentbox-api/sandbox-files/download-a-sandbox-file"},{"title":"Upload a sandbox file","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml post /files","href":"/agentbox-api/sandbox-files/upload-a-sandbox-file"}]},{"group":"SandboxTemplate","pages":[{"title":"List the product catalog (unified, tenant-facing)","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml get /products","href":"/agentbox-api/sandboxtemplate/list-the-product-catalog-unified-tenant-facing"},{"title":"List Templates","description":"Lists Templates visible to the authenticated organization. Results are\nsorted by creation time in descending order. Internal artifact IDs are\nnever returned. `name` is an exact match on the Template display name;\nomit it to list every visible Template.\n","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml get /templates","href":"/agentbox-api/sandboxtemplate/list-templates"},{"title":"Create a Template and start its initial Build","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml post /templates","href":"/agentbox-api/sandboxtemplate/create-a-template-and-start-its-initial-build"},{"title":"Get a Template","description":"Returns the logical Template and its current and latest Build references.","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml get /templates/{id}","href":"/agentbox-api/sandboxtemplate/get-a-template"},{"title":"Delete a Template","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml delete /templates/{id}","href":"/agentbox-api/sandboxtemplate/delete-a-template"},{"title":"Update mutable Template metadata","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml patch /templates/{id}","href":"/agentbox-api/sandboxtemplate/update-mutable-template-metadata"},{"title":"Initialize a Template build-context upload","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml post /templates/{template_id}/files","href":"/agentbox-api/sandboxtemplate/initialize-a-template-build-context-upload"},{"title":"Get Template build-context status","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml get /templates/{template_id}/files/{file_id}","href":"/agentbox-api/sandboxtemplate/get-template-build-context-status"},{"title":"List Template Builds","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml get /templates/{template_id}/builds","href":"/agentbox-api/sandboxtemplate/list-template-builds"},{"title":"Create and start a rebuild","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml post /templates/{template_id}/builds","href":"/agentbox-api/sandboxtemplate/create-and-start-a-rebuild"},{"title":"Get a Template Build","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml get /templates/{template_id}/builds/{id}","href":"/agentbox-api/sandboxtemplate/get-a-template-build"},{"title":"Start an existing Build","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml post /templates/{template_id}/builds/{id}","href":"/agentbox-api/sandboxtemplate/start-an-existing-build"},{"title":"Get live Template Build logs","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml get /templates/{template_id}/builds/{id}/logs","href":"/agentbox-api/sandboxtemplate/get-live-template-build-logs"}]},{"group":"SandboxSnapshot","pages":[{"title":"List durable snapshots","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml get /snapshots","href":"/agentbox-api/sandboxsnapshot/list-durable-snapshots"},{"title":"Create a durable snapshot","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml post /snapshots","href":"/agentbox-api/sandboxsnapshot/create-a-durable-snapshot"},{"title":"Get a durable snapshot","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml get /snapshots/{snapshot_id}","href":"/agentbox-api/sandboxsnapshot/get-a-durable-snapshot"},{"title":"Delete a durable snapshot","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml delete /snapshots/{snapshot_id}","href":"/agentbox-api/sandboxsnapshot/delete-a-durable-snapshot"},{"title":"Update a durable snapshot","deprecated":null,"version":null,"openapi":"/api-spec/sandbox_api.yaml patch /snapshots/{snapshot_id}","href":"/agentbox-api/sandboxsnapshot/update-a-durable-snapshot"}]}]}]}]},{"tab":"MCP","pages":[{"title":"MCP","href":"/mcp/gmi-mcp-server"}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/guides-overview"}]}]},"basePath":"","title":"Create a Template and start its initial Build - GMI Cloud Documentation","buildId":"dpl_715YoAgvjTGBDdo8RtXmHKM22b5p","deploymentId":"dpl_715YoAgvjTGBDdo8RtXmHKM22b5p","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BvKnMd7F.js","utils-BMt52org.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-CGXZuDGO.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dl57XWH2.js","snippetPresets-CWd8CxSk.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BR-Wkc_D.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-YMmi08aZ.js","shallow-DBC1OB78.js","getApiPlaygroundDisplay-Be7mmEzP.js","CodeSnippet-B14o1TgQ.js","CodeSnippets-CJ2q3fTq.js","Page-Chgj7sZe.js","getPastedJson-DnpLXm8x.js","icon-BpkSFtdK.js","MethodPill-BO3zPf-g.js","DuplicateIcon-Bib3qwfw.js","createIcon-CY2noFo3.js","DynamicMarkdown-TAXIW2vN.js","SectionHeading-Dfs3Fmfw.js","axios-vUo_bRtp.js","Markdown-CGAo_eqA.js","clsx-BNa-H6W6.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-r2tNEC1n.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-B7oWe6jc.js"]}