archiveDocumentVersion method

  1. @override
Future<DocumentVersion?> archiveDocumentVersion(
  1. String versionId
)
override

Archives a document version.

versionId - The ID of the version to archive

Returns the updated DocumentVersion with archived status.

Throws DeskDataSourceException if the operation fails. Throws DeskAuthenticationException if authentication is required.

Implementation

@override
Future<DocumentVersion?> archiveDocumentVersion(String versionId) async {
  return _updateVersionStatus(versionId, DocumentVersionStatus.archived);
}