We’re releasing a new feature that will allow you to add custom content-types when using the “Return data from API” action. Thanks @Zoe for shipping this new feature!
Previously, you were only allowed to use “Plain text” or “Structured JSON” as the content-type. When you select “Other content-type,” you can enter in the desired content-type (ex. JSON, XML) as a text in the “Custom type” field, as well as the body you’d like to return (in the format of that content-type) in the freeform text box below. Consequently, your app can send data to API’s using this custom content-type.
Is there an indication when we can return data from an api workflow? Rather than using the workaround of connecting to the api workflow through the api connector
We’re working on a project to return data from custom events, so eventually yes, you’d be able to return data to be used in other places on your app without the workaround of connecting your own app via the API connector.
Gosh, if the main Bubble interface weren’t busted on Chrome right now, I’d really be impressed. This is an interesting development that I can’t really explore at the moment.
The bigger unsolved problem of this, of course, is how to return arbitrary objects from this mechanism or the plugin API to Bubble, but it’s a tantalizing taste of that.
Why not just let @Zoe have at those issues for the next week or so?
(Note to fans: I’ve literally run out of runway with Bubble and will be making major changes to my interaction with the platform in the coming days. Last chance to get Floppy at a discount. Last chance for other things, too.)