Reagregar nós individuais em um resumo de evidências
curl --request POST \
--url https://api.nlbs.ai/analyses/{analysis_uuid}/graph/nodes/reaggregate \
--header 'Content-Type: application/json' \
--data '
{
"node_keys": [
"<string>"
]
}
'import requests
url = "https://api.nlbs.ai/analyses/{analysis_uuid}/graph/nodes/reaggregate"
payload = { "node_keys": ["<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({node_keys: ['<string>']})
};
fetch('https://api.nlbs.ai/analyses/{analysis_uuid}/graph/nodes/reaggregate', 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/reaggregate",
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([
'node_keys' => [
'<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/reaggregate"
payload := strings.NewReader("{\n \"node_keys\": [\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/reaggregate")
.header("Content-Type", "application/json")
.body("{\n \"node_keys\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nlbs.ai/analyses/{analysis_uuid}/graph/nodes/reaggregate")
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 \"node_keys\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"aggregate_node_key": "<string>",
"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
}
}{
"detail": "Resource not found."
}{
"detail": "Resource not found."
}{
"detail": "Resource not found."
}Grafo da análise
Reagregar nós individuais em um resumo de evidências
Reagrupa as chaves de nó individuais informadas em um único agregado EvidenceSummary. Todos os nós selecionados devem compartilhar a mesma entidade âncora e tipo de evidência.
POST
/
analyses
/
{analysis_uuid}
/
graph
/
nodes
/
reaggregate
Reagregar nós individuais em um resumo de evidências
curl --request POST \
--url https://api.nlbs.ai/analyses/{analysis_uuid}/graph/nodes/reaggregate \
--header 'Content-Type: application/json' \
--data '
{
"node_keys": [
"<string>"
]
}
'import requests
url = "https://api.nlbs.ai/analyses/{analysis_uuid}/graph/nodes/reaggregate"
payload = { "node_keys": ["<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({node_keys: ['<string>']})
};
fetch('https://api.nlbs.ai/analyses/{analysis_uuid}/graph/nodes/reaggregate', 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/reaggregate",
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([
'node_keys' => [
'<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/reaggregate"
payload := strings.NewReader("{\n \"node_keys\": [\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/reaggregate")
.header("Content-Type", "application/json")
.body("{\n \"node_keys\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nlbs.ai/analyses/{analysis_uuid}/graph/nodes/reaggregate")
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 \"node_keys\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"aggregate_node_key": "<string>",
"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
}
}{
"detail": "Resource not found."
}{
"detail": "Resource not found."
}{
"detail": "Resource not found."
}
