Array issues with double quotes

Hi
here’s the docs of API.
I try to send customFields but it doesn’t woerk.
I dont understand array without JSON syntax…
When I try in the make query string field this, the custom field is not update but the API return OK.


With this I have slash symbols \ are replaces in the input bundle by \"

Note that email and name are updated correctly !

[
    {
        "body": [
            {
                "key": "email",
                "value": "test@test.com"
            },
            {
                "key": "name",
                "value": "PL"
            },
            {
                "key": "customFields",
                "value": "[\"4\": \"PL\"]"
            }
        ],
        "task": "createOrUpdateUser",
        "method": "POST",
        "headers": [
            {
                "key": "Content-Type",
                "value": "application/json"
            }
        ]
    }
]

Any idea ?
Thx

That’s not an array. Did you mean to use a JSON object instead?

{
  "key": "value"
}

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

@samliew

In the documentation it seams an array…
I try Json only but my custom fields are not updated…
I think an error in api documentation

I try API with postman.
Here’s something works…
So there’s an issue in their documentation… I sent them this issue…

So, I don’t understand how use this in make…
without map (item in body) we can’t set JSON object in parameters…
With map if I use

{
    
    "email" : "XXXX@gmail.com", 
    "name":"CA",
    "customFields":{    "4":"Titi",
                        "7":"Tutu"
                    }
}

I have this return error of make

Array of objects expected in parameter ‘body’

Hi there - try the following
{

"email" : "XXXX@gmail.com", 
"name":"CA",
"customFields":[
     { "4":"Titi"},
     { "7":"Tutu"}
  ]

}

what is the differences ?

your original one has { “name”:“value”,“name”,“value”}

my one has [{“name”:“value”},{“name”:“value”}]
square brackets at each end and each field inside curly brackets

No same error…
don’t understand…