Create Version
Record a file as a new version of a document, following its latest version or the version named by parent, with a redline of what changed.
Send the file's bytes as multipart/form-data in the file field, or name a file you uploaded (or an edit's files.clean) by file_id, which the version takes as it is; parent, when given, as a form field holding its JSON. A JSON body names the file the same way: {"file_id", "parent"?, "author_name"?, "description"?}. Each upload is a new version; a file named by file_id becomes a version once, and naming it again is 409 CONFLICT. An edit's files.clean can be named while the edit is still being applied: the version's redline is made once the edit is.
Request
- Base URLhttps://api.versionstory.com (the document declares no server; this is the origin it was published from)
- URLhttps://api.versionstory.com/v1/documents/{document_id}/versions
- AuthHTTP bearer
Path parameters
The Document's document_id, a UUID.
Headers
Id of one of your customers (created in the developer dashboard) to attribute this request's credit usage to. Billing and limits stay organization-wide.
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.