Skip to main content
Question

PATCH in Webhooks by Zapier to Update Klaviyo Profile - Invalid Input and Malformed Request Errors


  • Beginner
  • 2 replies

Hi.  I’m trying to add a Webhook Custom Request step to my Zap that uses a Klaviyo PATCH API to update a phone number field in a Klaviyo profile.  The Klaviyo profile ID and phone number are dynamically pulling from previous steps in the Zap (I tested the PATCH step by entering static ID and phone and still got the same error).  However, I keep getting errors - either “Invalid Input” or “Malformed Request” (depending on the various entries I have tested in the “Data” field). 

I’m thinking that I haven’t entered the correct information in the “data” section, as I don’t know exactly which part of the code to enter.  Or, does a PATCH need to be connected to some other Webhook to work, as it is currently just this single step in my Zap flow (I’m a novice and don’t fully understand webhooks).

Thank you in advance for any insight.

Klaviyo “Update Profile” API documentation: https://developers.klaviyo.com/en/reference/update_profile

 

 

 

 

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

  • Author
  • Beginner
  • 2 replies
  • December 3, 2023

Alright.  I took another look this morning with fresh eyes.  I made a change to the “Data” section to include the  “{“data”:” text, and now it worked!  Hopefully that’s all that was needed.

 

 


Troy Tessalone
Forum|alt.badge.img+14

Hi @Vive 

Good question.

Perhaps try one of these Klaviyo Zap actions: