Chrism Posted August 16, 2022 Posted August 16, 2022 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'
bcooney Posted August 16, 2022 Posted August 16, 2022 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. 1
Recommended Posts
This topic is 819 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 accountSign in
Already have an account? Sign in here.
Sign In Now