REST API - datamapping json structure

Hi Phil, I cannot get the REST API to accept the payload:

JSON Payload: {“identifier”: 1576, “ProcessInformations”: {“OriginalFilename”: “testingData”}}

operation ID = None

Also tried it with just {“identifier”: 1576} with the same unhappy result.

I really need to get the original file name into the datamapper for the post processor to correctly name a csv file without using Workflow.

Please advise.

Many Thanks,
Tim

Crisis over - round and round the houses for hours to finally discover Content-Type was still set to “application/octet-stream”.
Facepalm.

Which REST endpoint are you calling?
No need to answer that one if you’ve resolved your issue. :stuck_out_tongue:

Hi Phil,
looks like the correct one:
rest/serverengine/workflow/datamining/getProgress/{operation_id}
It’s the only json content-type in the bunch, and I’d not set the header correctly.
T