I keep getting "unsupported media type" when calling the Domino API. What file format should I be using when calling the Domino API?
To resolve this specific issue, please try adding this to your API header:
Content-Type': 'application/json'
Since your header should also include your API key, the full header section will look like this:
headers = {
'Content-Type': 'application/json',
'X-Domino-Api-Key': '<api key>'
}
If you are getting this kind of error when calling the Domino API, we highly suggest trying to use Postman to test out your API calls. This is a free Application which can be downloaded here: https://www.postman.com/
Within Postman you can test out different media types without too much overhead.
Other API examples can be found here: https://tickets.dominodatalab.com/hc/en-us/articles/15131402335764
Comments
0 comments
Please sign in to leave a comment.