Hey, I am using a function in AWS Lambda to update a custom property for profiles in Klaviyo. I keep getting an Error Code 400, saying there are no parameters to update. I can’t find any info on what I might be doing wrong. The custom property is a list, and the payload I send is a list. I am able to provide more information if needed, but this is the exact error message on the log.
I have a custom property list called Fruits which is sent over to the code in order for it to fill out the pesticides list. I already created a Custom property list called Pesticides. I was wondering maybe my payload is in the incorrect format, but I doubt it. The code is able to retrieve all the information perfectly, it is just when it is sending info back, Klaviyo says there are no parameters to update.
| [INFO] 2024-06-19T07:17:08.938Z 65f67682-ced5-4678-947c-1a30a1ff9f20 Payload to be sent: {"properties": {"Pesticides": ["Acephate", "Tetraconazole", "Endrin", "Pyrimethanil", "Penthiopyrad", "Thiabendazole", "Cyantraniliprole", "Pentachloroaniline (PCA)", "Acetamiprid", "Methamidophos"]}} |
2024-06-19T07:17:09.117Z[INFO] 2024-06-19T07:17:09.117Z 65f67682-ced5-4678-947c-1a30a1ff9f20 Response from Klaviyo: { "status": 400, "message": "* __all__\n * No parameters to update." }
|