You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Next »
Purpose
This method allows to find all persons, which were merged with this person. Also this endpoint shows all the persons who enter the whole chain of merges to this person.
Specification
Logic
API paragraph not found
Input parameter | Values | Type | Description | Example |
---|
id | | String | Required | b075f148-7f93-4fc2-b2ec-2d81b19a9b7b |
Request structure
API paragraph not found
Authorize
Request to process the request using a token in the headers
Наприклад:
Content-Type:application/json
Authorization:Bearer c2778f3064753ea70de870a53795f5c9
api-key:uXhEczJ56adsfh3Ri9SUkc4en
Request data validation
API paragraph not found
Processing
API paragraph not found
Response structure
Example:
Response example. Code: 200
{
"meta": {
"code": 200,
"url": "https://example.com/resource",
"type": "object",
"request_id": "6617aeec-15e2-4d6f-b9bd-53559c358f97#17810"
},
"data": [
{
"id": "57e30ea3-16f1-4f8e-adcd-1a05e99e2d22",
"inserted_at": "2019-05-08T15:34:00Z",
"merge_person_id": "bdadc2a7-7283-4f24-bc99-8d8d9808af80",
"master_person_id": "b075f148-7f93-4fc2-b2ec-2d81b19a9b7b",
"updated_at": "2019-05-08T15:34:00Z"
},
{
"id": "a4181621-681f-4e46-b0ba-7fa4e59859ef",
"inserted_at": "2019-01-08T15:34:00Z",
"merge_person_id": "1a356e56-a991-4ceb-a475-3edfd9930265",
"master_person_id": "bdadc2a7-7283-4f24-bc99-8d8d9808af80",
"updated_at": "2019-01-08T15:34:00Z"
}
]
}
Response example. Code: 404
{
"meta": {
"code": 404,
"url": "https://example.com/resource",
"type": "object",
"request_id": "6617aeec-15e2-4d6f-b9bd-53559c358f97#17810"
},
"error": {
"type": "forbidden",
"message": "Such person not found"
}
}
Post-processing processes
API paragraph not found
HTTP status codes