Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 2014 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Filemaker friends:

I have been struggling for weeks to get my FM solution to post a CSV to an external service via a POST request to their API.  I have successfully created scripts with the "Insert from URL" script step for simple POST and GET requests, but nothing that transfers a file. 

Here is the doc:

https://apidocs.straticsnetworks.com/v1.1/reference#upload-new-phone-list

Here is the URL in the script step: 

httpspost://api.ivr-platform.com/api/phonelistsaccount=xxxxxxxx&file="$file

And my headers look like this:

" -H \"Accept: application/json\" "& " -H \"Authorization: Jwt "&$token&"\""& "--dump-header $$dump"

The .csv file in the variable $file is stored in a container.  All I can ever get the server to return is an error message that says: 

{"Error":"'file' is a required parameter"}

Does the $file variable need to go in the header?  If so, what tag does it need?

Thanks in advance. 

 

This topic is 2014 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.