Publishes a draft document.
If a published version of the document already exists this is replaced by the current draft document.
In either case the draft document is deleted.
The optional revision id parameters can be used for optimistic locking to ensure
that the draft and/or published versions of the document have not been changed by another client.
Publishes a draft document. If a published version of the document already exists this is replaced by the current draft document. In either case the draft document is deleted. The optional revision id parameters can be used for optimistic locking to ensure that the draft and/or published versions of the document have not been changed by another client.