Save Spark Drang and Drop via API

  • reallifemonkey-1292462203106234440

    RehLifeMonkey

    5 months ago

    Hello everyone,

    I use directus as a backend and would like to save the order of my drag and drop list. Unfortunately, I keep coming up against limits here: directus only accepts PATCH calls with which you can only change one value for several data sets and I have not yet found out how I can process a list of objects one after the other with an API call in toddle.

    Have you already found a solution for these problems or do you save your lists completely differently? I would appreciate a exchange on this!
  • lucasg-1292469667503276054

    Lucas G

    5 months ago

    @Max might be able to help you regarding directus
  • lucasg-1292470261236498572

    Lucas G

    5 months ago

    Workflow loops are simple to do but I imagine there’s got to be a way of bulk updating
  • max.kayr-1292471503148941406

    Max

    5 months ago

    Hey! Directus has an utility endpoint for sorting: [Utilities | Directus Docs] https://docs.directus.io/reference/system/utilities.html
  • And you can of course create a http flow that you can call from toddle.

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.