Quick reference
Required fields
Templates require the following fields:Template names must be unique. Creating a template with a name that already exists will fail.
Create a template
GPU Pod template
- cURL
- GraphQL
- Output
Serverless template
For Serverless templates, setvolumeInGb to 0 and include isServerless: true.
- cURL
- GraphQL
- Output
Private container images
For private container images, usecontainerRegistryAuthId with the ID of your saved registry credentials from your Runpod settings.
Modify a template
Include the templateid to update an existing template. The same mutation works for both GPU and Serverless templates.
- cURL
- GraphQL
- Output
Delete a template
Delete a template by name. The template must not be in use by any Pods or Serverless endpoints.- cURL
- GraphQL
- Output
Create a secret
Secrets store sensitive values that can be referenced in templates.- cURL
- GraphQL
- Output
Delete a secret
Delete a secret by its ID. You can find the secret ID from thesecretCreate response or by querying your secrets.
- cURL
- GraphQL
- Output