August 16, 20223 yr Im using the Sendinblue API and some simple commands to add / remove contacts from mailing lists and all works as expected. But I'm having issues getting some extra attributes into my command and not sure how it should be formatted in filemaker Copy below of the Curl which Sendinblue says is correct, but I cannot get the 'Attributes' section to work, so I'm unable to add FIRSTNAME, LASTNAME and COMPANYYNAME I don't know how to format it in my variable here - JSONSetElement ( $json ; ["listIds" ; "[7]" ; JSONArray]; ["updateEnabled" ; "true" ; JSONBoolean] ; ["email" ; Contacts::Email ; JSONString]; ["emailBlacklisted" ; "false" ; JSONBoolean]; ["smsBlacklisted" ; "false" ; JSONBoolean]) Where as the rest of the items are updated curl --request POST \ 2 --url https://api.sendinblue.com/v3/contacts \ 3 --header 'Accept: application/json' \ 4 --header 'Content-Type: application/json' \ 5 --header 'api-key: null' \ 6 --data ' 7{ 8 "attributes": { 9 "FIRSTNAME": "Bob", 10 "LASTNAME": "Jones", 11 "COMPANYNAME": "ABC Limited" 12 }, 13 "updateEnabled": true, 14 "email": "[email protected]" 15} 16'
August 16, 20223 yr attributes.FIRSTNAME As the key will build the structure you need. see https://community.claris.com/en/s/question/0D50H00007vxG3kSAE/insert-from-url-to-api-using-post. for an example of how to construct data payload.
Create an account or sign in to comment