Ana içeriğe geç

Save one of my drafts

PUT 

/api/me/drafts/:surface/:target

Last write wins by revision (the client's edit time, epoch ms): when the server already holds a NEWER revision (written on another device) nothing is changed and that version comes back with applied: false. The target must exist and be visible to the caller at write time (else 404). Throttled per member. Other open devices hear draft.updated on the caller's private channel (key + revision only, never the text).

Request​

Responses​

The stored draft, and whether this write was applied.