Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Overwrite Assets During API Import

Youssef Soliman September 22, 2025

I am currently importing data into the Assets app using the Import REST API provided by Atlassian on a set schedule. With the current setup, the objects are only updated or appended. However, is there a way to completely overwrite the objects list during the import with a new list? 

1 answer

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 23, 2025

HI @Youssef Soliman 

What API call are you making?

How does your API call look like.

Youssef Soliman September 23, 2025

Hello @Marc - Devoteam 

I am following the workflow detailed here: Index page for Assets Documentation

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 24, 2025

Hi @Youssef Soliman 

This is not a workflow, but documentation to the aPI endpoints.

What is the API call you are making, for importing the data?

Youssef Soliman September 24, 2025

@Marc - Devoteam 

 

In the article I linked, see sections 5B and 5C. In summary, I start an import using the following endpoint: 

POST https://api.atlassian.com/jsm/assets/workspace/...

 this response contain links specific to this import:

{
"result": "success",
"links": {
"submitProgress": "https://api.atlassian.com/...",
"submitResults": "https://api.atlassian.com/...",
"getExecutionStatus": "https://api.atlassian.com/...",
"cancel": "https://api.atlassian.com/..."
}
}

I use the "submitResults" endpoint to ingest the data object into Jira Assets. However, I don't see any option to overwrite the existing data in Jira Assets. This ingestion only updates or appends objects but does not delete objects if they are not included in the new incoming data 

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 25, 2025

Hi @Youssef Soliman 

How is you mapping defined in assets?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events