How to remove endpoint via Python API?
Hello, in Python API, you can create new endpoints. Is there a way to remove endpoints? Also, I can't find a way to get a list of templates programmatically. Thanks!
Solution:Jump to solution
or, if you just want a python function:
```python
import requests
import runpod ...
8 Replies
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
Ok, sure, so I can execute this query from Python? Thanks!
Even in graphql, however, I can't find a way to list all templates. Is there any?
https://graphql-spec.runpod.io/#query-myself
Search PodTemplate, there you can I believe.
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
To save the next person some time with this.
1. Write a POST request in postman
2. Set URL to: https://api.runpod.io/graphql?api_key=xxxxxxx
^Replace xxxx with your API key
3. Add headers: Key: Accept, Value: application/json
4. In body, select GraphQL and send the following text
5. hit send, you should get the list of podTemplates.
Solution
or, if you just want a python function:
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
😋 we should have this in RunPod Docs~