I am trying to POST documents to Watson's Discovery service via Postman. It gives me the following not-so-helpful error message no matter what kind document I try:
{
"code": 415,
"error": "The request failed. Please try again."}
The request looks like:
https://gateway.watsonplatform.net/discovery/api/v1/environments/7c83f310-0f3a-4ad0-bb71-5f260672cbca/collections/c0080236-aac1-405c-8111-322caa6b0b65/documents?version=2016-12-01
with the body containing the file in binary and the credentials in the header.
I can upload these documents fine via the collection dashboard, so I must be doing something wrong. Can anyone tell me what it is?