cancel
Showing results for 
Search instead for 
Did you mean: 

Webhook Issues - Writing New Array Custom Attribute to Users Profile

Shaun-Laver
Active Member

Hi all, 

I was wondering if anyone could help me with my Braze to Braze webhook custom attribute update issue I am having with an array attribute. 

Long story short, I have setup the webhook like you normally would for a custom attribute update but when I try and test with the array custom attribute it never writes to the test users profile even when I get a 201 message. I don't have the issue with non-array attributes. 

I have added the json code below i am using [minus actual API key and the real attribute name). Is there something wrong with it? 

Anyone's help here would be much appreciated! 

 

POST https://rest.iad-02.braze.com/users/track
Content-Type: application/json
Authorization: Bearer [API KEY] 
{
  "attributes": [
    {
      "external_id": "{{${user_id}}}",
      "[Array Custom Attribute Name]": "[Data To Add to Array Attribute]"
    }
  ]
}

 

1 REPLY 1

AllanHeo
Strategist II

Hi Shaun,

If you're still looking for help here, I'd love to help! I understand you want to obfuscate the custom attribute data, but I don't see any issues with your webhook so far, which tells me that the error might live in the custom attribute name or value which you've hidden. Are you able to share a little more of the data, but still changing the value to a dummy name? 

If this is helpful, I was able to successfully log an array with this code below: 

"attributes": [
{
"external_id" : external_id,
"test" : [123,456,789],
"test1" : ["123","456","789"]

}
]

Let me know if you have any questions!

Allan