Forum Discussion
Webhook Issues - Writing New Array Custom Attribute to Users Profile
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]"
}
]
}
- AllanHeoStrategist
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
Related Content
- 6 months ago
- 10 months ago
- 8 months ago