Safe updates
Every presentation read includes a checksum representing the version you received. update_presentation requires that checksum.
Read–edit–update
Section titled “Read–edit–update”- Call
get_presentationimmediately before editing. - Preserve the returned checksum.
- Modify the returned source.
- Call
update_presentationwith the presentation ID, complete updated source, and checksum. - Read the presentation again to confirm the published result.
get_presentation → edit source → update_presentation(checksum) → get_presentationConflict response
Section titled “Conflict response”If somebody or another client saves the deck after your read, the update returns CONFLICT. This is protection against silently overwriting their work.
Do not retry the same update blindly. Read the current presentation, compare the new source with your intended change, reapply the edit, and submit the new checksum.