I have tried to integrate UiPath’s HTTP Request and calling 2 of the ‘restdb.io’ APIs.
The ‘GET’ request is working fine and returns a list of items from my collection in the database from 'restdb.io.
However, when making a ‘POST’ call (To create an item in the table in restdb database), blank items are created even though the status of the API call is ‘201’.
Apologies I have updated the single quotes to this as single quotes don’t work: “{”“name”“: ““hi””}”.
But this still doesn’t work.
I have managed to make the POST call work by first writing the body in a TXT file and then reading that txt file into a string and using that string variable in the HTTP Request activity. This works, however should not be the way we solve this.
Just to leave some extra info. You can always try with a site like http://webhook.site, by sending the same call from studio with a string variable and the simple text. This way you will see whether there is any difference in the call content (for whatever reason).