Hey guys,
I’m trying to integrate appsumo into bubble. I have created an API workflow that receives data from appsumo and processes it according to action defined in the API Call by appsumo. App sumo wants me to return a different HTTP Status for each kind of action but bubble always returns a “200 OK” status. Is there any way I can change this HTTP Status dynamically or any alternative solution for this?
Any doc url?
Most webhook will expect 200 response, nothing else. Bubble doesn’t allow you to change that actually.
This part of the documentation asks me to return a 201 Created response code. The documentation is only available to logged-in and verified users. Do let me know if you require anything else from the documentation.
There’s no way actually inside Bubble. I think Make/Integromat will allow you to do that.
You can post your request to ideaboard (there’s some about return data from API)
I’m flattered to be mentioned here, though I’m no expert or super comfortable with APIs yet, I’ll try my best to help:
From bubbles updated API documentation I found 2 docs that mention a 201 response which I’ll leave below:
- Data API requests - Bubble Docs
- Data API requests - Bubble Docs (see the POST request for Create a thing)
This thread also caught my attention as the author also needed a 201 response: Api connector POST Eyeson - #3 by clem
This weekend I’ll deep-dive into APIs and their usage with bubble (hopefully after I’ll be in a better position to help)
Yeah Bubble backend workflows can’t return custom status codes. It’s stupid, but there it is. (Previous most stupid thing in this area was that backend workflows were POST only, but we finally got GET a while ago.)