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

ILayoutService

public interface ILayoutService
Represents the layout API service.
void AddFields(int workspaceId, Layout entity, List<CategoryField> categoryFields)

Builds the layout.

Layout Create(int workspaceId, Layout entity)

Creates the specified Layout.

void Delete(int workspaceId, int entityId)

Deletes the layout by ID.

Layout Get(int workspaceId, int entityId)

Gets the layout by the specified ID.

List<Category> GetCategories(int workspaceId, Layout entity)

Gets the categories in a layout.

Gets the list eligible to be a layout owner by the specified workspace ID.

Layout Require(int workspaceId, Layout entity)

Requires the specified layout. If [ArtifactID](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.Artifact.html#Relativity_Testing_Framework_Models_Artifact_ArtifactID) property of entity has positive value, gets entity by ID 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 entity have a value, gets entity by name and updates it if it exists.Otherwise creates a new entity using ICreateWorkspaceEntityStrategy<T>

void Update(int workspaceId, Layout entity)

Updates the specified layout.