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
There is onnthe graphql API reference
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.
Try to use postman, see the code generated part in right side (postman).
( google how to do this if you want ), theres a graphql input that is compatible and good for testing already in postman
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:
Thank you for sharing
😋 we should have this in RunPod Docs~