Unify and manage your data

Get all DVFs

Learn how to retrieve all Data Validation Functions (DVFs) configured for a tenant in a specific environment.

Use this operation to retrieve the Data Validation Functions (DVFs) configured for a tenant. The Data Validation runs on a dedicated service host, separate from your tenant's base API host. Reltio scopes the DVFs returned by the environment you specify in the request. For information about executing DVFs against entity data, see Validate entities using DVF.

HTTP method and endpoint

Use the following HTTP method and endpoint path to retrieve all DVFs for a tenant:

GET https://data-validation-functions.reltio.com/api/{tenantId}/dataValidationFunctions

The following table describes the endpoint path parameters.

ParameterTypeRequiredDescription
tenantIdStringYesThe unique identifier of the tenant.

Request headers

Include the following headers in the request. Use the env header to scope which DVFs are returned.

HeaderValueRequired
AuthorizationBearer <access_token>Yes
envThe environment identifier that scopes the DVFs returned by this request. Results reflect only the DVFs configured for the specified environment.Yes

Request body

This operation doesn't require a request body.

Example request

Use the following example to see how a complete request is structured with headers and a JSON body.

GET https://data-validation-functions.reltio.com/api/{tenantId}/dataValidationFunctions
Authorization: Bearer <access_token>
env: {environment}

Response body

The response is an array of DVF objects.

FieldTypeDescription
uriStringUnique identifier of the DVF.
nameStringName of the DVF.
labelStringDisplay label of the DVF.
descriptionStringDescription of the DVF.
expressionStringThe validation expression evaluated by the DVF.
actionStringThe action taken when the DVF evaluates to true, for example WARNING.
messageStringValidation message for the function when the expression is evaluated as true.
validationEventStringThe lifecycle event on which the DVF runs.
statusStringWhether the DVF is ACTIVE or inactive.
attributeStringThe attribute URI the DVF validates.
createdByStringThe user or system that created the DVF.
createdTimeStringEpoch timestamp, in milliseconds, when the DVF was created.
updatedByStringThe user or system that last updated the DVF.
updatedTimeStringEpoch timestamp, in milliseconds, when the DVF was last updated.
applyOnStringScope the DVF applies to, for example OV (object version).
sourceTypesArraySource types the DVF applies to. Empty when the DVF applies to all sources.

Example response

The following example shows a response with two DVFs.

[
  {
    "uri": "c71e300b-d992-4e9b-80d2-f2245cab6521",
    "name": "ShortNameCheck",
    "label": "",
    "description": "Name is suspiciously short",
    "expression": "regexp(attributes.Name.value, '^.{1,3}$')",
    "action": "WARNING",
	"message":"Name must contain at least 3 characters."
    "validationEvent": "ALL",
    "status": "ACTIVE",
    "attribute": "configuration/entityTypes/Organization/attributes/Name",
    "createdBy": "jane.doe@example.com",
    "createdTime": "1783418619169",
    "updatedBy": "jane.doe@example.com",
    "updatedTime": "1783418619169",
    "applyOn": "OV",
    "sourceTypes": []
  },
  {
    "uri": "5f3e9a21-7c44-4b8e-9d12-3a6f8e0b1c9d",
    "name": "InvalidGTINFormat",
    "label": "",
    "description": "GTIN does not match the expected format",
    "expression": "regexp(attributes.GTIN.value, '^[0-9]{12,14}$')",
    "action": "ERROR",
	"message": "GTIN must match the standard 14-digit format."
    "validationEvent": "ALL",
    "status": "ACTIVE",
    "attribute": "configuration/entityTypes/Product/attributes/GTIN",
    "createdBy": "jane.doe@example.com",
    "createdTime": "1783418700000",
    "updatedBy": "jane.doe@example.com",
    "updatedTime": "1783418700000",
    "applyOn": "OV",
    "sourceTypes": []
  },
...
]

The following table lists the possible error responses returned by this API.

HTTP status codeError codeDescriptionRecommended action
401 UnauthorizedMISSINGMissing or invalid authentication credentials.Provide a valid bearer token.
403 ForbiddenMISSINGInsufficient permissions.Confirm the account has DVF read permissions.
500 Internal Server ErrorMISSINGUnexpected server-side error.Retry; contact support if the issue persists.
503 Service UnavailableMISSINGThe service is temporarily unavailable.Retry after a delay.

For more information, see Validate entities using DVF, Get DVFs by entity type, and Get DVF by URI.