Method Not Allowed Error Hosted API

When I try to connect to my trained models API in order to use it on visual studio code, I get an error which in summary says HTTPError: 405 Client Error: Method Not Allowed for URL:

I get this error even though I filled my API key, MODEL_ENDPOINT and version correctly, by double-checking from the “Use curl command” section.

answered your question on your other post, here: Error occuring while trying the API - #2 by Mohamed