Web API. How to upload Json formatted text to web server?

I’m using Web API with GET parameter to download Json files from my own Web server: it works quite nicely.
The problem is : how do I reverse this action, that is to say how do I upload a Json string to my web server?
Specifically what I don’t know is, if I use the PUT parameter of the Web API, where should be the Json string to be uploaded ?
Thk’s in advance for any reply.

Hello @motzet
To send a JSON you need to use the API body block:

Thks @Ionnis for your reply!
Unfortunately this doesn’t solve my problem…
In fact, the file I want to upload is in my Assets. Hence, I guess that when using the block “url from uploaded file” I should put in this block the full url of the aimed directory in the web server: correct ?
That’s what I’ve done, but it failed…

Btw. how could I put an asset file content into a variable ?

Hi @motzet
Thank you for sharing more information
You will need to upload the file on the project assets and then select it on the “url from uploaded file” block

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.