Batch Sets Manager (.NET)

A batch set is a group of batches, which contain documents for review as part of the e-discovery process. For more information, see Batches.

The Batch Sets Manager API exposes CRUD operations for batch sets. It also supports creating and purging batches for a batch set. As a sample use case, you could use the Batch Sets Manager API to implement an application that programmatically creates a batch set and the batches contained in it.

You can also use the Batch Sets Manager API through REST. For more information, see Batch Sets Manager (REST).

The Relativity.Review.SDK contains this API. For compatibility and package installation instructions, see Download the SDKs and NuGet packages.

Fundamentals for the Batch Sets Manager API

The Batch Sets Manager API contains the following methods and classes.

Methods

The Batch Sets Manager API exposes the following methods on the IBatchSetsManager interface in the Relativity.Review.Server.Versioned.<VersionNumber>.BatchSets namespace:

  • CreateAsync() method - adds a new batch set to a workspace. This method takes the Artifact ID of the workspace where the batch set is to be created and a BatchSet object. It returns a BatchSet object. See Create a batch set.
  • ReadAsync() method - retrieves the properties for a batch set. This method takes the Artifact ID of the workspace containing the batch set and the Artifact ID of the batch set. It returns a BatchSet object, which contains information about the batch set. See Read a batch set.
  • UpdateAsync() method - modifies an existing batch set. This method takes the Artifact ID of the workspace containing the batch set and a BatchSet object containing the data used to modify the existing batch set. It returns a BatchSet object, which contains the updated properties. See Update a batch set.
  • DeleteAsync() method - removes a batch set from Relativity. This method takes the Artifact ID of the workspace containing the batch set and the Artifact ID of the batch set. See Delete a batch set.
  • CreateBatchesAsync() method - creates batches in a batch set. This method takes the Artifact ID of the workspace containing the batch set and the Artifact ID of the batch set. It returns the number of batches created. See Create batches in a batch set.
  • PurgeBatchesAsync() method - deletes the batches from a batch set. This method takes the Artifact ID of the workspace containing the batch set and the Artifact ID of the batch set. It returns the number of batches deleted. See Remove batches from a batch set.

Note: You can query for batch sets by using the Object Manager API. This API provides conditions for querying based on the batch set name. For more information, see Object Manager (.NET).

Classes and enumerations

The Batch Sets Manager API includes the following classes available in the Relativity.Review.Server.Domain.BatchSets.Models.<VersionNumber> namespace:

  • BatchSet class - represents information about a specific batch set. Its properties include Artifact ID of the batch set, its user-friendly name, its prefix, number of documents in each batch, and others.
  • AutoBatchSettings class - represents the settings used to automatically batch documents in a batch set. Its properties include the time interval in minutes for creating the batches and the minimum batch size.
  • AutoBatchProgress class - represents the number of documents remaining to be batched. Its properties include number of documents to be batched, the time of the last successful run, and Auto Batch status.
  • AutoBatchStatus enumeration - represents the status of an Auto Batch job as follows:
    • Pending - the job was submitted and is waiting to be processed.
    • Processing - the job was submitted and is being processed.
    • Error - the job was submitted but not completed due to an error.

Create a batch set

Use the CreateAsync() method to add a new batch set to a workspace. This method takes the following arguments:

  • The Artifact ID of the workspace where the batch set is to be created
  • A BatchSet object

It returns a BatchSet object.

Read a batch set

Use the ReadAsync() method to retrieve the properties of a batch set. This method takes the following arguments:

  • The Artifact ID of the workspace containing the batch set
  • The Artifact ID of the batch set

It returns a BatchSet object.

Update a batch set

Use the UpdateAsync() method to modify the properties of a batch set. This method takes the following arguments:

  • The Artifact ID of the workspace containing the batch set
  • A BatchSet object containing the data used to modify the existing batch set.

It returns an updated BatchSet object.

Delete a batch set

Use the DeleteAsync() method to remove a batch set from Relativity. This method takes the following arguments:

  • The Artifact ID of the workspace containing the batch set
  • The Artifact ID of the batch set

Create batches in a batch set

Use the CreateBatchesAsync() method to create batches in a batch set. This method takes the following arguments:

  • The Artifact ID of the workspace containing the batch set
  • The Artifact ID of the batch set

It returns the number of batches created.

Remove batches from a batch set

Use the PurgeBatchesAsync() method to delete batches from a batch set. This method takes the following arguments:

  • The Artifact ID of the workspace containing the batch set
  • The Artifact ID of the batch set

It returns the number of batches deleted.