Hi,
I'm trying to import a csv file with rest api but it seems I can't get endpoint:
I've followed these doc: https://support.atlassian.com/jira/kb/how-to-import-assets-object-schema-using-rest-api/
And endpont it seems is:
https://<Jira base url>/rest/insight/1.0/objectschemaimport/import/server/nowarning
With postman says me:
The reason you're getting a "dead link" (404 error) is that you are using a Jira Data Center (Server) API endpoint for your Jira Cloud site.
The KB article you followed (how-to-import-assets-object-schema-using-rest-api/) is specifically for the Data Center version of Jira.
The .../rest/insight/1.0/... endpoint does not exist on Jira Cloud. "Insight" was the former name for "Assets," and the cloud API is built differently.
For Jira Cloud, you need to use the new Imports REST API for Assets.
It's not a single-call endpoint. It's a multi-step workflow, which you can find in the official developer documentation. The basic process is:
Create an import source in the Assets UI to generate a container token.
Verify the token by making a GET request to https://api.atlassian.com/jsm/assets/v1/imports/info.
Get dynamic URLs from the response of that request (which will give you links to start, map, and get the status).
Submit your mapping and then start the import using those dynamic URLs.
This official guide is the correct starting point: Imports REST API Guide - Atlassian Developer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.