AnsweredAssumed Answered

Can anyone help me with a taks of creating a record via API from one filemaker data base to another?

Question asked by johnnykund on Nov 3, 2018
Latest reply on Nov 4, 2018 by johnnykund

I am trying to see if I can get API to work, but my skilsl seems to be limited. I am trying to make a connection from one FileMaker database to another FileMaker database both on a cloud solution. I have manged to login and get a token, so that works, but when I am trying to create a record I get the following message:


{"messages":[{"message":"fieldData is missing.","code":"10"}],"response":{}}


I have been trying for serval days without success. This is my latest version:


This is my cURL:

-X POST -H "Authorization: Bearer : e46f75e950dd43fd0fd831e0cf6c98b151485611c08935e46cdb" -H "Cache-Control: no-cachee" -H "Content-Type: application/json" -d "{\"filedData\":{\"Address\":\"Johnny avenue 1\",\"ClientName\":\"Johnny Nielsen\"}}" -D $header



JSONSetElement ("{}" ;

["ClientName" ; "Johnny Nielsen" ; JSONString];

["Address" ; "Johnny avenue 1" ; JSONString]




JSONSetElement ( "{}" ; "filedData" ; $json ; JSONObject )



_cURL_request ( "POST" ) &

_cURL_header ( "Authorization: Bearer "  ; Client::Bear_Token ) &

_cURL_header ( "Cache-Control"; "no-cachee" ) &

_cURL_header ( "Content-Type"; "application/json" ) &

_cURL_data___string ( $json2 ) &

_cURL_dump_header ( "header")