Unify and manage your data

Get DVFs by entity type

Learn how to retrieve the Data Validation Functions (DVFs) configured for a specific entity type in your Reltio tenant.

Use this operation to retrieve the DVFs configured for a specific entity type. 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, in addition to the entity type.

HTTP method and endpoint

Use the following HTTP method and endpoint path to retrieve DVFs for an entity type:

GET https://data-validation-functions.reltio.com/api/{tenantId}/dataValidationFunctions/entityTypes/{entityType}
ParameterTypeRequiredDescription
tenantIdStringYesThe unique identifier of the tenant.
entityTypeStringYesThe short name of the entity type, for example Organization. Not the fully qualified entity type URI.

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 does not 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/entityTypes/Organization
Authorization: Bearer <access_token>

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 where every object in the response shares the entity type requested in the path, in this example, Organization.

[
  {
    "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": "8b2c4d61-3f77-4a19-b0e5-6d9a1c7e4f32",
    "name": "MissingTaxID",
    "label": "",
    "description": "Tax ID is required for this organization type",
    "expression": "isNull(attributes.TaxID.value)",
    "action": "WARNING",
	"message": "Tax ID is required for organizations of this type."
    "validationEvent": "ALL",
    "status": "ACTIVE",
    "attribute": "configuration/entityTypes/Organization/attributes/TaxID",
    "createdBy": "jane.doe@example.com",
    "createdTime": "1783418750000",
    "updatedBy": "jane.doe@example.com",
    "updatedTime": "1783418750000",
    "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 all DVFs, and Get DVF by URI.