Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,029
Community Members
 
Community Events
165
Community Groups

insight rest api for executing an import

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

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
Community showcase
Published in Apps & Integrations

Marketplace Partner Spotlight: AppLiger

This month the spotlight is on AppLiger. We caught up with Pavel Pavlovsky, CEO and Product Manager, to learn how the company started and what fuels the team's creativity.    Atlassian:...

379 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you