Biographic
External biographics from a biographic database.
Provide a list of one or more IDs and, for each ID provided, retrieve a list of biographics from an external biographic database using ID keys.
If the authorization token is VALID, the response will be 200 OK. It will contain an ID list with the related biographics. If no IDs are found, the return is an empty list.
If the authorization token is INVALID, the response will be 403 Forbidden.
- : get biographics
OK
Forbidden
POST /biographicBase/biographics HTTP/1.1
Host: <ip>:8130
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 196
{
"ids": [
{
"id": "821C51EA-73A7-4AEE-A0F5-0E47373F7151",
"keys": [
{
"key": "pguid",
"value": "821C51EA-73A7-4AEE-A0F5-0E47373F7151"
},
{
"key": "cpf",
"value": "24614048870"
},
{
"key": "rg",
"value": "170864145"
}
]
}
]
}{
"ids": [
{
"id": "821C51EA-73A7-4AEE-A0F5-0E47373F7151",
"biographics": [
{
"key": "name",
"type": "TEXT",
"value": "John"
},
{
"key": "surname",
"type": "TEXT",
"value": "Doe"
}
]
}
]
}Update list of biographics for a provided ID using ID keys.
An ID identified with a list of keys and list to biographics to update it with.
If no ID is found by keys, CREATE it on the biographic base.
Status of update operation
HTTP status
Status message
If an ID is found by keys, UPDATE it on the biographic base.
Forbidden
PUT /biographicBase/biographics HTTP/1.1
Host: <ip>:8130
Content-Type: application/json
Accept: */*
Content-Length: 106
{
"keys": [
{
"key": "cpf",
"value": "12170778802"
}
],
"biographics": [
{
"key": "name",
"type": "TEXT",
"value": "John"
}
]
}{
"status": 201,
"message": "Created"
}Last updated
Was this helpful?

