Create Document Version
POST /documents/{documentId}/versions
/documents/{documentId}/versionsSaves a named version of a doc: a frozen copy of its content and filters as last saved, which can be opened, printed, commented on and reviewed while editing goes on. expectedVersion is the doc's version from DynamicDocs_GetDocument; a stale one answers 409 with currentVersion and saves nothing. The name must be unique on the doc. Needs Edit on the doc's file. Returns 201 with the version id, which is its file version id (Drives_GetFileVersions lists it). Signature blocks in the content must each name a signer and a Sign stage of the doc's review route, every Sign stage needs at least one block, and each signer must be on the doc's event (or organization) with a login; otherwise 400. When the doc's route has a review, the version starts its review run and its data tables are frozen for it.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| documentId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Optional | |
| expectedVersion | integer | Optional |
Response
Type: uuid