Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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 \
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'

This topic is 829 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.