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.

4 Replies
Hey @thomast could you please have a look to this when you have some free time ? 🙏
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)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.
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.
