When I use this endpoint, any custom properties I try to create have their values transformed into an array that holds that value as its first value. Does anyone know a workaround or a way to escalate this to engineering to fix?
https://developers.klaviyo.com/en/reference/create_or_update_profile
Example:
$payload = [
'data' => [
'type' => 'profile',
'attributes' => $attributes,
'meta' => [
'patch_properties' => [
'append' => [
'GN_custom' => 'value goes here',
],
],
],
],
];
$response = $this->client->Profiles->createOrUpdateProfile($payload);
I would expect my custom property `GN_custom` to have a value of "value goes here" but instead it is wrapped in an array like this ["value goes here"].
At first I thought it was a problem with the PHP SDK that we’re using, but after debugging it appears to be just the way the API endpoint handles custom properties. IMO it’s broken.
Thanks in advance!