Change an app
Open a mapplication, change it and save it, without undoing anyone else’s save.
These calls go to the API’s address and send your session, as in The basics.
Open it
Open the mapplication to change it. The answer has its whole document, mapplication, and when it was last saved, updated:
{"mapplication": {"title": "Harbour Days",…},"updated": "2026-11-25T18:09:02.265Z",…}
Change what you want in the document, and keep updated for when you save it.
Save it
A save replaces the whole document, so send back all of what you opened, with your change: here a new title. The document’s id says which mapplication it is.
Send the updated you opened it with as expectedUpdated. If anyone has saved the mapplication since, your save is refused, so it can’t undo their change:
{"mapplication": {"id": "d54d8cf0-3fc4-4fd0-a6e6-fdb01b8ab48e","title": "Harbour Days by the Sea",…},"expectedUpdated": "2026-11-25T18:09:02.265Z"}
{"mapplication": {"title": "Harbour Days by the Sea",…},"updated": "2026-11-25T19:22:09.549Z",…}
The answer is the saved mapplication, with a new updated: your next save sends that one.
When someone saved first
The save above changed updated, so the same save sent again comes from an old copy of the mapplication. It’s refused, and nothing is saved:
{"mapplication": {"id": "d54d8cf0-3fc4-4fd0-a6e6-fdb01b8ab48e","title": "Harbour Days by the Sea",…},"expectedUpdated": "2026-11-25T18:09:02.265Z"}
{"error": "This mapplication has changed since it was read"}
Open the mapplication again, and make your change on what’s there now.