insight rest api for executing an import

Jon Hill June 24, 2020

https://insight-javadoc.riada.io/insight-javadoc-8.6/insight-rest/#import says that to run an Insight import via the REST API, I should be able to just POST to /start/import/<id>.

According to the insight-import log, the import I want to execute has an ID of 30, so for my test (on-prem), I posted to https://<server>/rest/insight/1.0/import/start/30 with no body, but all I got back was "Something went wrong.  Please contact the administrator."

Is this feature not available in Insight 6.4?

 

 

1 answer

0 votes
Felix Haverkamp October 14, 2021

Hi,
just had the same problem.

You have to send a empty JSON Body with "{}"

 

for example via curl:

curl -u username:password -X POST -H "Content-Type: application/json" -d {} https://YOUR-JIRA/rest/insight/1.0/import/start/7

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events