Best answer

Help with Webhook post request

  • 23 November 2022
  • 3 replies
  • 73 views

Hey all,

 

The Dev folks opened me a new endpoint with a bit of an unusual structure (body), as it has hirrecry: 

  1. user
    1. email (“string”)
    2. reason (number)

the structure of the call looks like this (tested and verified on postman): 

{
    "users": [
        {
            "email": "me@mememe.oi",
            "reason": 2
        }
    ]
}

 

I'm wondering how can I adjust the Zapier preset webbook data to fit the structure.

I tried users[email]/users[reason] but it didn't worked (‘internal server error).

any idea how I should format the the call?

icon

Best answer by MarinaH 28 November 2022, 22:12

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

Userlevel 7
Badge +14

Hi @omer_verbit 

Good question.

Perhaps you can post screenshots with how your Zap steps are configured in order for us to have more context.

Userlevel 4
Badge +9

Hey @omer_verbit 👋

POST and PUT Webhooks actions aren’t able to support line-items unfortunately. However, you should be able to achieve this by using a Custom Request and a Formatter step, where you’ve mapped the array you want to send. This workflow is outlined here: 

 

Hope that helps! 

Thanks all for the help and sorry for the late response. 

 

Our R&D helped me to format it properly so now it works!