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

IMarkupSetService

public interface IMarkupSetService
Represents the markup API service.
MarkupSet Create(int workspaceId, MarkupSet entity)

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

void Delete(int workspaceId, int entityId)

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

bool Exists(int workspaceId, int entityId)

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

MarkupSet Get(int workspaceId, int entityId)

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

MarkupSet Get(int workspaceId, string entityName)

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

MarkupSet Require(int workspaceId, MarkupSet entity)

Requires the specified [MarkupSet](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.MarkupSet.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 entity has positive value, gets [MarkupSet](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.MarkupSet.html) 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 entity has a value, gets [MarkupSet](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.MarkupSet.html) by name and updates it if it exists.Otherwise creates a new [MarkupSet](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.MarkupSet.html).

void Update(int workspaceId, MarkupSet entity)

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