Hello, Gliders
I have data that I will send using the Glide call API action with the POST method. However, the recipient API only accepts body data in form-data format, just like in the Postman application. What is the data format used in the body column in the Glide Call API to send data with a form-data format like the Postman application?
Do you only need to send key value pairs over or do you need to send a file?
Thank you for responding, I only sent data, not files.
But while waiting for an answer in the glide community, I tried asking Chat GPT
and I got a response like this
POST https://example.com/api/endpoint HTTP/1.1
Host: example.com
Content-Type: application/x-www-form-urlencoded
kode=389&barcode=2401001&noinduk=2401001&nama=Shaqira%20Ayudia%20fauza&tmp_lhr=Pekanbaru&tgl_lhr=2018-10-21T00:00:00.000Z&alamat=SHAQIRA%20AYUDIA%20FAUZA&wali=Said&nohpwali=082283432001
How to make body like that on Glide?
Sorry, Its not working
but I get Information from Documentation like this
Is there a way to create a body like the template described in the documentation?
Finally I found a way, namely using “Get Part of URL Column”.
First I had to create a dummy url in the “Cunstruct URL Column” then use the Query parameters to determine the attributes and their values.
Second, use “Get Part of URL Column” and set the part at the bottom filled with the text “search”. This will take the appropriate parameters to be used as the body for the API request.
Third
Use the “template” column to remove question marks.
Very grateful.
What do you mean by “dummy URL” here?
My point about “dummy” is that it only fills in the blanks in the host and path fields, and only uses the parameter query fields.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.