post request of ndjson to insight cloud

yue.wang November 17, 2021

I have been trying to post ndjson to insight cloud endpoint, the reason for not using json is because there seems limitation on the number of json files that can be posted per endpoint.

headers = {"Accept": "application/json", "Authorization": "Bearer ***", "Content-Type": "application/x-ndjson"}

 

requests.post(urls_start["links"]["submitResults"],json=ndjson_data, headers=headers)

But I keep getting {"errorMessages":["HTTP 415 Unsupported Media Type"],"errors":{}} 

I wonder does that mean insight cloud api does not support ndjson?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events