subjectRecord.create
Create a Subject Record to serve as a container for related entity information..
POST http://api.kompliant.com/subjectRecord.create (OpenAPI specification)
Usage Info
The Subject Record contains details about the entity that the workflow activity will be performed against. Before details about the entity can be added, a Subject Record must be created.
The Subject Record functions as the foundational container that organizes all related entities (Business, Person, Bank Account) into a cohesive unit. This method establishes the core record that Workflows will operate on, allowing you to collect and process information about a specific subject. Create a Subject Record first when you need to manually build entity relationships before initiating any Workflow.
Request
Authentication: KSig1-HMAC-SHA256
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| account_id | string | Yes | The account where the subject record will be created. The Account ID is supplied to you when you receive your credentials. |
| subject_record | object | Yes | The subject record parameter defined in the table below. |
Subject Record
| Parameter | Type | Required | Description |
|---|---|---|---|
| type | string | Yes | The type of subject record. Must be one of SUBJECT_RECORD_TYPES. |
Example
{
"account_id": "sb_j8gh53b",
"subject_record": {
"type": "BUSINESS"
}
}
Response
Data
| Parameter | Type | Description |
|---|---|---|
| subject_record | object | The subject record parameter defined in the table below. |
Subject Record Parameters
| Parameter | Type | Description |
|---|---|---|
| subject_record_id | string | The identifier for the Subject Record just created. |
Example
{
"meta": {
"status": "SUCCESS",
"trace_id": "trc_2G7ieBCFVylEc6FyO0Ni3",
"version": "2025-03-24"
},
"data": {
"subject_record": {
"subject_record_id": "sr_4vrv6U1vdpc341MO7cF8pE"
}
}
}
Errors
| Error Code | HTTP Code | Possible Cause |
|---|---|---|
| BAD_REQUEST | 400 | The type provided is not one of the SUBJECT_RECORD_TYPES.Invalid values provided. |
| ENTITY_NOT_FOUND | 400 | The account_idprovided does not exist. |
Updated 7 months ago