containerDiskInGbdockerArgsenvimageNamenamevolumeInGb
containerRegistryAuthId argument, which takes the ID (not the name) of the container registry credentials you saved in your Runpod user settings as a string.
Template names must be unique as well; if you try to create a new template with the same name as an existing one, your call will fail.
Create a Pod Template
Create GPU Template
- cURL
- GraphQL
- Output
Create Serverless Template
For Serverless templates, always pass0 for volumeInGb, since Serverless workers don’t have persistent storage (other than those with network volumes).
- cURL
- GraphQL
- Output
Modify a Template
Modify a GPU Pod Template
- cURL
- GraphQL
- Output
Modify a Serverless Template
- cURL
- GraphQL
- Output
Delete a Template
Note that the template you’d like to delete must not be in use by any Pods or assigned to any Serverless endpoints. It can take up to 2 minutes to be able to delete a template after its most recent use by a Pod or Serverless endpoint, too. The same mutation is used for deleting both Pod and Serverless templates.- cURL
- GraphQL
- Output
Create a Secret
To create a secret, you need to send a GraphQL mutation request. This request will include thesecretCreate mutation with the required input fields value and name. The value represents the actual secret, and the name is a unique identifier for the secret.
- cURL
- GraphQL