# Each builder step maps to an entry in the request "steps" array. Builds are
# large/SSE — see the API reference for the full CreateTemplateRequest schema.
curl -N -X POST "${NULLSPACE_API_URL}/v1/templates/build" \
-H "Authorization: Bearer ${NULLSPACE_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"name": "agent-template",
"base_image": "ubuntu:22.04",
"steps": [
{"action": "apt_install", "packages": ["git", "curl", "ripgrep"]},
{"action": "pip_install", "packages": ["requests", "pytest"]},
{"action": "npm_install", "packages": ["typescript"], "g": true},
{"action": "bun_install", "packages": ["vite"], "g": true}
]
}'