Processing Custodian Manager (REST)

This topic describes the custodians endpoint, which is used to access the Processing Custodian Manager service. The Processing Custodian Manager service supports read and save operations on custodian objects. A custodian is a user who's associated with the data included in a processing job. For more information, see Entity object on the Relativity Documentation site.

Note: See the topic Get started with the Processing API for general guidance on the Processing API, and links to documentation for the other interfaces and services in this API.

Create a processing custodian

To create a processing custodian, send a POST request to the following URL

Copy
<host>/Relativity.Rest/API/relativity-processing/v1/workspaces/{your workspace id}/custodians

Request Body Example (entity type Individual)

Copy
{
    "custodian":
    {
        "DocumentNumberingPrefix":"test",
        "FirstName":"Test",
        "LastName":"User",
        "CustodianType":"Person"
    }
}

Request Body Example (entity type Other)

Copy
{
    "custodian":
    {
        "DocumentNumberingPrefix":"test",
        "Name":"test other",
        "CustodianType":"Other"
    }
}
  • DocumentNumberingPrefix: the prefix applied to files when published through processing. For more information, see Processing sets on the Relativity Documentation site.
  • FirstName and LastName: the first and last name of the custodian (for custodians of type Individual)
  • Name: the name of the custodian (for custodians of type Other)
  • CustodianType: indicates whether the custodian is an individual or an entity. It must be set to "Person" for an individual, or "Other" for a corporation, data location, or other construct. See Entity object on the Relativity Documentation site.

The response returns the Artifact ID of the custodian that was created or updated, such as the integer 1060372.

Read a processing custodian

To read a processing custodian, send a GET request to the following URL

Copy
<host>/Relativity.Rest/API/relativity-processing/v1/workspaces/{your workspace id}/custodians/{your custodian Artifact ID}

The response for custodian who is an individual contains the following fields:

  • DocumentNumberingPrefix: the prefix applied to files when published through processing. For more information, see Processing sets on the Relativity Documentation site.
  • FirstName and LastName: the first and last name of the custodian.
  • CustodianType: returns "Person" indicating that the custodian is an individual.
  • ArtifactId : the Artifact ID of the ProcessingCustodian object.
  • Name: the full name of the custodian.
Copy

{
"DocumentNumberingPrefix": "Laura-"
"FirstName": "Laura"
"LastName": "Libera"
"CustodianType": "Person"
"ArtifactID": 1038911
"Name": "Libera, Laura"
}

The response for custodian that is an entity contains the same fields as a custodian who is a person. However, the CustodianType fields contains "Entity", and "FirstName" and "LastName" don't contain any values.

Copy

{
  "DocumentNumberingPrefix": "relativity-"
  "FirstName": "-"
  "LastName": "-"
  "CustodianType": "Entity"
  "ArtifactID": 1038912
  "Name": "Relativity ODA LLC"
}

Update a processing custodian

To update a processing custodian, send a PUT request to the following URL

Copy
<host>/Relativity.Rest/API/relativity-processing/v1/workspaces/{your workspace id}/custodians/{your custodian Artifact ID}

Request Body Example (entity type Individual)

Copy
{
    "custodian":
    {
        "DocumentNumberingPrefix":"test",
        "FirstName":"Test",
        "LastName":"User",
        "CustodianType":"Person"
    }
}

Request Body Example (entity type Other)

Copy
{
    "custodian":
    {
        "DocumentNumberingPrefix":"test",
        "Name":"test other",
        "CustodianType":"Other"
    }
}
  • DocumentNumberingPrefix: the prefix applied to files when published through processing. For more information, see Processing sets on the Relativity Documentation site.
  • FirstName and LastName: the first and last name of the custodian (for custodians of type Individual)
  • Name: the name of the custodian (for custodians of type Other)
  • CustodianType: indicates whether the custodian is an individual or an entity. It must be set to "Person" for an individual, or "Other" for a corporation, data location, or other construct. See Entity object on the Relativity Documentation site.

The response returns the Artifact ID of the custodian that was created or updated, such as the integer 1060372.