Need to change or update the progress bar when trying to import assets from third party software using the importAssetsType jsm forge module.

I have tried providing data using the importsource submitProgress API but no luck it still shows a indefinite load bar with the default text. The code snippet to update using API is:
await api
.asApp()
.requestJira(
route`/jsm/assets/workspace/${workspaceId}/v1/importsource/${importId}/executions/${executionId}/progress`,
{
method: "PUT",
body: JSON.stringify({
"objects": {
"total": <totalCount>,
"processed": <completedCount>,
"description": "Importing data"
}
}),
headers: {
"Content-Type": "application/json",
},
}
);
How can one acheive this?