metadata.create

Create a Metadata entity to capture details of a certain metadata type

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

Usage Info

Use this endpoint when creating an entry for a metadata to capture details of a certain metadata type.

Request

Authentication: KSig1-HMAC-SHA256

Parameters

ParameterTypeRequiredDescription
subject_record_idstringYesThe Subject Record to add this Business to.
metadataobjectYesThe metadata parameter defined in the tables below.

Metadata Parameters

ParameterTypeRequiredDescription
metadata_typestringYesThe metadata type defined for an account to capture details for entities that belongs to associated SubjectRecord entity.
detailsobjectYesThe details parameter consists of additional properties of key-value pair defined as per metadata type fields schema.

Example

{
  "subject_record_id": "{{subject_record_id}}",
  "metadata": {
    "metadata_type": "ip_address",
    "details": {
      "ipv4": "192.168.1.1",
      "allocation_method": "DHCP"
    }
  }
}

Response

Data

ParameterTypeDescription
metadataobjectThe metadata parameter defined in the tables below.

Person Parameters

ParameterTypeDescription
metadata_idstringThe identifier for the Metadata just created.

Example

{
  "meta": {
    "status": "SUCCESS",
    "version": "2025-03-24",
    "trace_id": "trc_3OwNmn7AgCvLGqeCIjKjSD"
  },
  "data": {
    "metadata": {
      "metadata_id": "md_62B8bzHqB59D8bxPBZkjF0"
    }
  }
}

Errors

Error CodeHTTP CodePossible Cause
BAD_REQUEST400Required parameters not provided.
Allowed parameters provided not valid.
ENTITY_NOT_FOUND400Any of the provided Ids does 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 RecordMAX_METADATA_TYPE_LIMITThe maximum number of metadata entries for a certain metadata type has been reached for a Subject Record entity.