v1
latestOpenAPI 3.0.32026-07-133733150.4 KBtemplates
Create a new template
Create a new template.
post/templates
Request body
Example request
{
"env": {
"ENV_VAR": "value"
},
"ports": [
"8888/http",
"22/tcp"
]
}Response
Successful operation.
Example response
{
"category": "NVIDIA",
"containerDiskInGb": 50,
"dockerEntrypoint": [],
"dockerStartCmd": [],
"earned": 100,
"env": {
"ENV_VAR": "value"
},
"id": "30zmvf89kd",
"imageName": "runpod/pytorch:2.1.0-py3.10-cuda11.8.0-devel-ubuntu22.04",
"isRunpod": true,
"isServerless": true,
"name": "my template",
"ports": [
"8888/http",
"22/tcp"
],
"volumeInGb": 20,
"volumeMountPath": "/workspace"
}