Why doesn't this API cal work? Updating custom fields in Acymailing

I have to update some custom fields of a user in Acymailing.
I’m using the Make an API call Acymailing module. The API documentation is this

If I set the body this way

it returns 201, but the user isn’t updated.

If I try with the HTTP module and use this body


It works.

But if I use the same body in the Acymailing API call module, I get this error

  • Array of objects expected in parameter ‘body’.

Why?

You’ll probably need to do it this way:

{
  "email": "abc@example.com",
  "customFields": [
    {
      "3": "My value"
    },
    {
      "5": [
        "one",
        "two"
      ]
    }
  ]
}

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

3 Likes

Thanks. I just tested and it worked.

2 Likes