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

IViewService

public interface IViewService
Represent the API view service.
View Create(int workspaceArtifactID, View view)

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

bool Exists(int workspaceArtifactID, int viewArtifactID)

Determines whether the [View](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.View.html) with the specified ArtifactID exists.

View Get(int workspaceArtifactID, int viewArtifactID)

Gets the [View](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.View.html) by the specified ArtifactID.

View Get(int workspaceArtifactID, string viewName)

Gets the [View](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.View.html) by the specified name.

View[] GetAll(int workspaceArtifactID)

Gets all [View](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.View.html)s in workspace. Returns not all fields for faster response.

Gets the list of of object types in a specific workspace.

NamedArtifact[] GetViewOwners(int workspaceId)

Gets a list of users eligible to be view owners in a specific workspace. You can then use this list to assign owners to a view.

View Require(int workspaceArtifactID, View view)

Requires the specified [View](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.View.html). If [ArtifactID](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.Artifact.html#Relativity_Testing_Framework_Models_Artifact_ArtifactID) property of view has positive value, gets view by ArtifactID and updates it.If [Name](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.NamedArtifact.html#Relativity_Testing_Framework_Models_NamedArtifact_Name) property of view has a value, gets view by name and updates it if it exists.Otherwise creates a new [View](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.View.html).

void Update(int workspaceArtifactID, View view)

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