POST /api/dms/objects/{objectId}/versions/{versionNr}/actions/restore
As of Version | product version 2022 Spring | component version 2022 Spring |
---|---|
Request Method | POST |
Required Permission | action write on the current version of the object>> Roles and Role Sets |
Description | Restores the old version of an object specified by The following requirements have to be matched by the object version specified by
Internally, the data of the old object version are used to update the current object version. Thus, a new object version is created that has the data of the specified old object version except for If tags are assigned to the current object before the restoring action, only those tags with a name ending with the suffix A new entry in the object's audit trail is created. For the As of 2022 Summer: Optionally, the boolean query parameter
As of 2022 Autumn, the optional query parameter |
Request Example |
|
Result Example | { "objects": [{ "properties": { "system:objectId": { "value": "950f1e3a-829b-473d-97c5-9ea0a94706f6" }, "system:baseTypeId": { "value": "system:document" }, "system:objectTypeId": { "value": "appEmail:email" }, "system:createdBy": { "value": "0d7fd0be-6a0b-4d3b-933c-25e0c4c5d794" }, "system:creationDate": { "value": "2018-01-26T15:21:170Z" }, "system:lastModifiedBy": { "value": "0d7fd0be-6a0b-4d3b-933c-25e0c4c5d794" }, "system:lastModificationDate": { "value": "2018-01-26T15:21:170Z" }, "system:versionNumber": { "value": 4 }, "system:tenant": { "value": "tenant1" }, "system:traceId": { "value": "97a35859dbb4c435" }, "appEmail:from": { "value": "Garco Meissler <garco@example.de>" }, "appEmail:to": { "value": ["Dudreas Annkel <dudreas@example.de>"] }, "appEmail:cc": { "value": ["Kruedeas Anger <kruedeas@example.de>", "Vils Normum <Normum@example.de>"] }, "appEmail:subject": { "value": "Updated Bewerbungsunterlagen" }, "table": { "columnNames": ["iColumn1", "iColumn2", "iColumn3"], "value": [["something", "to know", true],["more", "infos", false]] } }, "contentStreams": [{ "contentStreamId": "2B797243-A1F5-11EA-A814-9FABD98CE7A7", "length": 173413, "mimeType": "message/rfc822", "fileName": "upload.eml", "digest": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855", "repositoryId": "repo252" }] }] } |