metadata.links.add

Link a metadata entity to another entity.

POST http://api.kompliant.com/metadata.links.add (OpenAPI specification)

Usage Info

Use this endpoint when adding metadata to a Person, Bank Account, Business or Location entities.

Request

Authentication: KSig1-HMAC-SHA256

Parameters

ParameterTypeRequiredDescription
metadata_idstringYesThe Metadata record to link
entity_idsarrayNoThe Entity Id we want to link to our metadata record.

Must be from Person, Bank Account, Business or Location entities

Notes:

  • All entities must belong to the same subject record as the metadata detail.
  • Entities that are already linked will be skipped without error.

Example

{
  "metadata_id": "md_6DXWVhevFPsUpUyCpS30L",
  "entity_ids": ["p_3qn9kVmRIxlRjwR3nmui0b", "b_6AV8JrkmpZMOjQkf9xgxeg"]
}

Response

Data

An empty data object is returned when the completion is successful.

Example

{
  "meta": {
    "status": "SUCCESS",
    "trace_id": "trc_6zNzQZHSf26V83BO3uW6dS",
    "version": "2025-03-24"
  },
  "data": {}
}

Errors

Error CodeHTTP CodePossible Cause
BAD_REQUEST400Required parameters not provided.
Enum value provided does not correspond to an available type.
ENTITY_NOT_FOUND400Any of the provided Ids do not exist.
SYSTEM_RULE_VIOLATION400System rule violations are described below.

System Rule Violations

When a SYSTEM_RULE_VIOLATION error occurs, the response will include additional entity_type and sub_code fields to provide more specific information:

Entity TypeSub-codeDescription
Subject RecordCROSS_SUBJECT_RECORD_REFERENCEThe referenced entities must belong to the same subject record. Associations cannot be created between entities that exist in different subject records.