documents
Patch Version
Rename a version when the user renames it or its file. Match the user's "v3" to a label in your earlier results. Leave the user's local files as they are.
Send only what changes, {"name"?, "metadata"?}, at least one of them: metadata merges into what is stored, a key sent replacing that key and a key sent as null removing it. The answer is the version.
patch/v1/documents/{document_id}/versions/{version_id}
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/{version_id}
- AuthHTTP bearer
Path parameters
version_idstring required
The version's version_id, a UUID, or "latest" for the Document's newest version.
document_idstring required
The Document's document_id, a UUID.
Headers
X-Customer-Idstring nullable
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.