How to use the Expected Response Body.

How to use the Expected Response Body. The endpoint that I will hook, will reply with an ID. I would like to store these ID in a Twenty Object Field.
No description
4 Replies
Prastoin
Prastoin2w ago
Hey @thomast could you please have a look to this when you have some free time ? 🙏
thomast
thomast2w ago
Hi @Pedro Magalhães, the endpoint will simply return the value of the id not wrapped into an object? Webhook expected body needs an object, like {"id": 123} Could you send me an example of return value of your endpoint (full endpoint answer, not just the id)
Pedro Magalhães
Pedro MagalhãesOP2w ago
I still didnt have the endpoint. I could return it directly as {"id": 123} from my endpoint. But how should I declare it on Expected Response Body.? I will use the returned value to update a field.
thomast
thomast2w ago
If your endpoint returns {"id": 123} then you simply set it to the expected response body of your http request. Then in following step, you will use the variable picker to set the id wherever you want. Adding screeshots for each step.
No description
No description

Did you find this page helpful?