R
RunPod5mo ago
wmute

Creating serverless templates via GraphQL

I want to automatically create serverless templates from command line/python. I tried the example for creating a new pod here: https://docs.runpod.io/docs/create-pod-template which worked. I want to create a serverless template though, but when I add isServerless: true to the graphql request (as per the PodTemplate documentation) it errors out with:
{"errors":[{"message":"Error saving template. Please contact support or try again later.","path":["saveTemplate"],"extensions":{"code":"RUNPOD"}}],"data":{"saveTemplate":null}}
{"errors":[{"message":"Error saving template. Please contact support or try again later.","path":["saveTemplate"],"extensions":{"code":"RUNPOD"}}],"data":{"saveTemplate":null}}
Where is the saveTemplate mutation described in the documentation? I can't find it in https://graphql-spec.runpod.io/#group-Operations-Mutations
RunPod
Manage Templates
Create a new Pod/Serverless template, or modify/delete existing ones.
0 Replies
No replies yetBe the first to reply to this messageJoin