klaviyo-api-node icon indicating copy to clipboard operation
klaviyo-api-node copied to clipboard

UpdateProfile doesn't include "options" parameter

Open BodiePaden opened this issue 1 year ago • 2 comments

The Klaviyo docs say that UpdateProfile will return the "subscriptions" block, but it actually doesn't. The only way I was able to get it was by adding additional-fields[profile]=subscriptions to the PATCH request in Postman. There doesn't seem to be an equivalent in the SDK as the function takes no "options" parameter to support it.

I'm guessing this is the case on other functions as well like CreateProfile, etc., but I haven't tested those.

BodiePaden avatar Oct 02 '24 18:10 BodiePaden

Thanks for raising this, we'll investigate a fix for a future release. As a workaround for now, could you try making a GET request after your PATCH with additionalFieldsProfile: ['subscriptions']?

nat-klaviyo avatar Oct 02 '24 18:10 nat-klaviyo

Yes, that's exactly what I'm doing, thank you. Looking forward to the fix so I don't have to make the extra call. :)

BodiePaden avatar Oct 02 '24 19:10 BodiePaden