[POST] /actions/restore

[POST] /actions/restore

/api/dms/objects/{objectId}/versions/{versionNumber}/actions/restore

Description

To restore a content version or an index data version of a DMS object. The current version is then archived and a copy of the version to restore is activated as the current version. The CURRENT version can't be restored. In normal this endpoint returns finally the complete DMS object with all its index data and the content information (not the content itself). If this answer is not used the query parameter minimalResponse can be added to the request. Then the endpoint return HTTP/204 and not the complete DMS object. This saves 30% of the runtime.

Request
Method

POST

Request optional Query Parameter

  • objectTypeId (String): The objectTypeId for the object to be queried. This speeds up the query.

  • minimalResponse (Boolean): On success the response is HTTP/204 without any content. This speeds up the endpoint by 30%.

Response
Format

JSON

Minimum Version

6.2.0

Request
Example

/api/dms/objects/109491/versions/39FEC10D06844B73BB0BCF63F845CD6B/actions/restore
/api/dms/objects/109491/versions/39FEC10D06844B73BB0BCF63F845CD6B/actions/restore?objectTypeId=262144

Result
Example

{ "objects": [{ "properties": { "system:objectId": { "value": "109491" }, "system:lastModifiedBy": { "value": "RENE10" }, "system:baseTypeId": { "value": "DOCUMENT" }, "system:objectTypeId": { "value": "262238" }, "system:createdBy": { "value": "RENE10" }, "system:creationDate": { "value": "2020-12-08T18:33:14+01:00" }, "system:lastModificationDate": { "value": "2020-12-08T18:33:14+01:00" }, "firstname": { "value": "Test" }, "feld30": { "value": "My Value" }, "feld31": { "value": "My Value 31" }, "LastUpdate": { "value": "2023-10-23" }, "familyname": { "value": "Versioning" } } }], "numItems": 1, "hasMoreItems": false, "totalNumItems": 1 }