Desagregar registros de um nó de evidências
curl --request POST \
--url https://api.nlbs.ai/analyses/{analysis_uuid}/graph/nodes/{node_key}/disaggregate \
--header 'Content-Type: application/json' \
--data '
{
"record_ids": [
"<string>"
]
}
'import requests
url = "https://api.nlbs.ai/analyses/{analysis_uuid}/graph/nodes/{node_key}/disaggregate"
payload = { "record_ids": ["<string>"] }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({record_ids: ['<string>']})
};
fetch('https://api.nlbs.ai/analyses/{analysis_uuid}/graph/nodes/{node_key}/disaggregate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.nlbs.ai/analyses/{analysis_uuid}/graph/nodes/{node_key}/disaggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'record_ids' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.nlbs.ai/analyses/{analysis_uuid}/graph/nodes/{node_key}/disaggregate"
payload := strings.NewReader("{\n \"record_ids\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.nlbs.ai/analyses/{analysis_uuid}/graph/nodes/{node_key}/disaggregate")
.header("Content-Type", "application/json")
.body("{\n \"record_ids\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nlbs.ai/analyses/{analysis_uuid}/graph/nodes/{node_key}/disaggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"record_ids\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"graph": {
"root_entity_id": 123,
"edges": [
{
"projection_key": "<string>",
"source_canonical_id": 123,
"source_label": "Entity",
"target_canonical_id": 123,
"target_label": "Entity",
"canonical_id": 123,
"canonical_table": "<string>",
"confidence_level": "<string>",
"display_name": "<string>",
"evidence_count": 123,
"evidence_id": 123,
"evidence_table": "<string>",
"evidence_type": "<string>",
"is_active": true,
"is_expanded": false,
"is_inferred": false,
"relationship_role": "<string>",
"relationship_subtype": "<string>",
"relationship_type": "ACCOUNT_AT_INSTITUTION",
"risk_level": "<string>",
"source_id": 123,
"status": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25"
}
],
"limitations": [
{
"code": "<string>",
"message": "<string>",
"details": {},
"entity_id": 1
}
],
"nodes": [
{
"canonical_id": 123,
"canonical_table": "<string>",
"key": "<string>",
"closed_at": null,
"decision_date": null,
"display_name": "<string>",
"is_active": true,
"is_expanded": false,
"is_inferred": false,
"label": "AdministrativeProceeding",
"opened_at": null,
"proceeding_number": null,
"proceeding_type": null,
"signal_severity": "clean",
"source_id": 123,
"status": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25"
}
],
"paths": [
{
"depth": 1,
"path_id": "<string>",
"root_node_key": "<string>",
"target_node_key": "<string>",
"contains_cycle": false,
"direction": "self",
"edge_keys": [
"<string>"
],
"equivalent_path_count": 1,
"node_keys": [
"<string>"
],
"truncated": false
}
],
"truncated": false
},
"disaggregated": [
{
"edge_key": "<string>",
"node_key": "<string>",
"signal_codes": [
"<string>"
]
}
]
}{
"detail": "Resource not found."
}{
"detail": "Resource not found."
}{
"detail": "Resource not found."
}Grafo da análise
Desagregar registros de um nó de evidências
Extrai os ids de registro informados de um agregado EvidenceSummary persistido, materializando cada um como nó/aresta individual conectado à entidade âncora.
POST
/
analyses
/
{analysis_uuid}
/
graph
/
nodes
/
{node_key}
/
disaggregate
Desagregar registros de um nó de evidências
curl --request POST \
--url https://api.nlbs.ai/analyses/{analysis_uuid}/graph/nodes/{node_key}/disaggregate \
--header 'Content-Type: application/json' \
--data '
{
"record_ids": [
"<string>"
]
}
'import requests
url = "https://api.nlbs.ai/analyses/{analysis_uuid}/graph/nodes/{node_key}/disaggregate"
payload = { "record_ids": ["<string>"] }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({record_ids: ['<string>']})
};
fetch('https://api.nlbs.ai/analyses/{analysis_uuid}/graph/nodes/{node_key}/disaggregate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.nlbs.ai/analyses/{analysis_uuid}/graph/nodes/{node_key}/disaggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'record_ids' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.nlbs.ai/analyses/{analysis_uuid}/graph/nodes/{node_key}/disaggregate"
payload := strings.NewReader("{\n \"record_ids\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.nlbs.ai/analyses/{analysis_uuid}/graph/nodes/{node_key}/disaggregate")
.header("Content-Type", "application/json")
.body("{\n \"record_ids\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nlbs.ai/analyses/{analysis_uuid}/graph/nodes/{node_key}/disaggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"record_ids\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"graph": {
"root_entity_id": 123,
"edges": [
{
"projection_key": "<string>",
"source_canonical_id": 123,
"source_label": "Entity",
"target_canonical_id": 123,
"target_label": "Entity",
"canonical_id": 123,
"canonical_table": "<string>",
"confidence_level": "<string>",
"display_name": "<string>",
"evidence_count": 123,
"evidence_id": 123,
"evidence_table": "<string>",
"evidence_type": "<string>",
"is_active": true,
"is_expanded": false,
"is_inferred": false,
"relationship_role": "<string>",
"relationship_subtype": "<string>",
"relationship_type": "ACCOUNT_AT_INSTITUTION",
"risk_level": "<string>",
"source_id": 123,
"status": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25"
}
],
"limitations": [
{
"code": "<string>",
"message": "<string>",
"details": {},
"entity_id": 1
}
],
"nodes": [
{
"canonical_id": 123,
"canonical_table": "<string>",
"key": "<string>",
"closed_at": null,
"decision_date": null,
"display_name": "<string>",
"is_active": true,
"is_expanded": false,
"is_inferred": false,
"label": "AdministrativeProceeding",
"opened_at": null,
"proceeding_number": null,
"proceeding_type": null,
"signal_severity": "clean",
"source_id": 123,
"status": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25"
}
],
"paths": [
{
"depth": 1,
"path_id": "<string>",
"root_node_key": "<string>",
"target_node_key": "<string>",
"contains_cycle": false,
"direction": "self",
"edge_keys": [
"<string>"
],
"equivalent_path_count": 1,
"node_keys": [
"<string>"
],
"truncated": false
}
],
"truncated": false
},
"disaggregated": [
{
"edge_key": "<string>",
"node_key": "<string>",
"signal_codes": [
"<string>"
]
}
]
}{
"detail": "Resource not found."
}{
"detail": "Resource not found."
}{
"detail": "Resource not found."
}Body
application/json
Minimum array length:
1Pattern:
^-?[0-9]+$
