Support API Key Authentication
Update Template
put/templates/{id}
Path parameters
idstring uuid required
Request body
Example request
{
"category": "UBUNTU",
"container_start_immediately": false,
"description": "Ubuntu Template",
"docker_image": "ubuntu",
"docker_image_digest": "sha256:e5a6aeef391a8a9bdaee3de6b28f393837c479d8217324a2340b64e45a81e0ef",
"docker_image_tag": "20.04",
"entrypoint": "",
"environment": {
"test_env": "44"
},
"internal_ports": [
22,
8002
],
"is_private": true,
"name": "Ubuntu",
"readme": "# Ubuntu Template",
"startup_commands": "bash -c 'apt update;apt install -y wget;DEBIAN_FRONTEND=noninteractive apt-get install openssh-server -y;mkdir -p /root/.ssh;cd $_;chmod 700 /root/.ssh;echo USER_PUBLIC_KEY > /root/.ssh/authorized_keys;chmod 700 /root/.ssh/authorized_keys;service ssh start; touch /root/container_ready; sleep infinity'",
"volumes": [
"/workspace"
]
}Response
Successful Response