restoreDocumentVersions method

Future<void> restoreDocumentVersions({
  1. required String documentId,
  2. String? authenticationToken,
})

Recovers a deleted version of an Amazon WorkDocs document.

May throw ConcurrentModificationException. May throw ConflictingOperationException. May throw EntityNotExistsException. May throw FailedDependencyException. May throw InvalidOperationException. May throw ProhibitedStateException. May throw UnauthorizedOperationException. May throw UnauthorizedResourceAccessException.

Parameter documentId : The ID of the document.

Parameter authenticationToken : Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.

Implementation

Future<void> restoreDocumentVersions({
  required String documentId,
  String? authenticationToken,
}) async {
  final headers = <String, String>{
    if (authenticationToken != null)
      'Authentication': authenticationToken.toString(),
  };
  await _protocol.send(
    payload: null,
    method: 'POST',
    requestUri:
        '/api/v1/documentVersions/restore/${Uri.encodeComponent(documentId)}',
    headers: headers,
    exceptionFnMap: _exceptionFns,
  );
}