How to Store and Update API Data (CaptureSections) in Bubble?

Hi everyone!

I’m working with an API that returns an array of “captureSections” through a GET request. Each captureSection has the following structure:

{
“name”: “Homework”,
“percentage”: 50,
“type”: “CAPTURE”
}

I would like to store this array in Bubble (similar to using a state in React) so that I can:

  1. Edit the captureSections data on the front-end.
  2. Add new captureSections.
  3. Send the updated array back to the API via a PUT request.

What’s the best approach in Bubble to handle this? Should I use custom states, backend workflows, or another method? Any tips or best practices would be appreciated.

Thanks in advance!

1 Like

use a json plugin and just work with the json itself…jsonAssistant is a easy to use plugin

This topic was automatically closed after 70 days. New replies are no longer allowed.