<PackageReference Include="Relativity.Server.Testing.Framework.Api.SDK" Version="5000.1.0" />

IFolderService

public interface IFolderService
Represents the Folder API service.
Folder Create(int workspaceArtifactID, Folder folder)

Creates the specified [Folder](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.Folder.html) in specified workspace.

QueryResult<Artifact> DeleteUnused(int workspaceArtifactID)

Deletes unused (empty) folders from the workspace.

Folder Get(int workspaceArtifactID, int folderArtifactID, int? parentFolderArtifactID = default)

Gets folder by ArtifactID. Parent Folder Artifact ID must be set if it's not the Workspace Root Folder (then it can be skipped).

FolderAccessStatus GetAccessStatus(int workspaceArtifactID, int folderArtifactID)

Gets information about the user‘s ability to access the folder.

List<Folder> GetExpandedNodes(int workspaceArtifactID, List<int> expandedNodesArtifactIDs, int selectedFolderArtifactID = 0)

Gets a folder structure that contains expanded [Folder](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.Folder.html) nodes and can select folder by Artifact ID.

List<Folder> GetSubfolders(int workspaceArtifactID, int parentFolderArtifactID)

Gets subfolders of given [Folder](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.Folder.html).

Folder GetWorkspaceRootFolder(int workspaceArtifactID)

Gets the root [Folder](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.Folder.html) of the workspace.

FolderMoveResponse Move(int workspaceArtifactID, int folderArtifactID, int destinationFolderArtifactID)

Moves a [Folder](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.Folder.html) and its children, including subfolders and documents.

QueryResult<NamedArtifact> Query(int workspaceArtifactID, Query query, int length = 0)

Queries for unstructured list of [Folder](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.Folder.html)s.

Folder Update(int workspaceArtifactID, Folder folder)

Updates [Folder](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.Folder.html).