Changing method of a call webhook action resets body to default #1152
Replies: 6 comments
-
Ya this was definitely by design. It seems telling the method with a complex body would be a rare thing. In any case they can still cancel and worst case use the revision history. Perhaps we could add some warning when a custom body is removed? |
Beta Was this translation helpful? Give feedback.
-
The problem is that there's no indication that we've just blown away a users' custom payload. You might change from POST to PUT and be completely unaware the payload has been changed. I think I lean toward not messing with the payload and give users a way to explicitly revert to the default payload if they want . |
Beta Was this translation helpful? Give feedback.
-
Ya, kinda agree that it should be a more explicit action to blow it away. |
Beta Was this translation helpful? Give feedback.
-
The oddity here is switching to POST with some modification and then back to GET they most likely don't expect a payload (we recently added support for GET bodies as a customer request. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I think the important thing is to preserve user changes. If they haven't touched the default POST body and they change to GET then clear the body, and if they change back to POST then put the default back. But if they've made changes (method == GET and body != "" or method != GET and body == DEFAULT) then we keep that. Sending a superfluous GET body isn't the end of the world. |
Beta Was this translation helpful? Give feedback.
-
https://app.intercom.com/a/apps/l6e7tr01/inbox/inbox/155936/conversations/20798300029295
I think I remember us discussing this tho I can't remember why we decided to have it like this, and maybe current behavior is right.. but If you have a custom body, and you toggle the method, it resets the body back to the default.
Beta Was this translation helpful? Give feedback.
All reactions