mapping JSON request body for REST API (in OIC)
Summary:
Hi,
I'm making an integration where i am receiving a list of Job Family object from PeopleSoft, and for each Job Family received, it needs to be created or updated in Oracle HCM. The REST API i'm using to send POST requests to Oracle HCM i found here: https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=117391947854858&parent=EXTERNAL_SEARCH&sourceId=HOWTO&id=2644754.1&_afrWindowMode=0&_adf.ctrl-state=104jehu43a_4
So that endpoint needs a request body like this:
I'm trying to avoid sending a post request per Job Family i receive from PeopleSoft, since i heard that's a bad practice to avoid. So i want to construct one big request body so i can send only one post request in the integration. But i'm struggling to find how i can do this in OIC. One thing i've tried is to first write the entire request body into a string, which does work, but i couldn't find out how to map that string as the request body for the request.