My experiments show that it is possible to update relationship only for the record which has the “unique” part. E.g if user have several slots, slot belongs to one user - then it’s possible to update relationship field for the slot (change user-owner).
But I didn’t manage to update user (assign another array of slots).
The logic is similar to the one in DB console in Adalo.
@berwickgeek what is interesting - it is possible to update Many-to-Many relationships via API.
Tested it just now - works perfectly, using an array in JSON.
I wonder why updating one-to-many from “one” side isn’t possible.
Hey, using the example you have with the user and the slot, ‘user’ does not appear in the API documentation of the slot (However, an array of ‘slots’ does appear in the user documentation). Are you sure you can update the ‘user’ for a slot even tho ‘user’ does not appear in the API documentation?
I’m not sure I get your question.
You can update relationships via API (although it is not documented therefore I can’t confirm that it’s officially supported - you need to check it with Adalo directly).
It is possible to update M2M relationships by updating the relationship property in a collection with an array of IDs of the “reciprocal” collection.
Also it’s possible to update 1:M relationships, in a “many” collection, choosing which “one” you’d like to connect.