Unmerge Entity by Contributor URI
If an entity is composite (result of merge), every component (contributor) can be unmerged to be a standalone entity again. Let us call the composite entity "Origin" and the unmerging one "Spawn".
Request
POST {TenantURL}/<origin id>/_unmerge?contributorURI=<spawn URI>
Parameter | Required | Details | |
---|---|---|---|
Headers | Authorization |
Yes | Information about authentication access token in format "Bearer
<accessToken> " (see details in Authentication API). |
Query |
spawn id |
Yes | URI of some entity that has been merged into origin and now going to detach from it. |
contributor uri
|
Yes | URI of contributor need to be unmerged. |
Spawn must be the part of Origin at the moment. If it's not, an error will be returned. Parts of actual entities can be seen in the crosswalk tree.
Request
POST <TenantURL>/entities/01QoskL/_unmerge?contributorURI=entities/01QobhJ
Response
Returns a pair of entities, "a" and "b", where "a" stands for the modified Origin and "b" for Spawn:
{
"a": {
"URI": "entities/01QoskL",
"type": "configuration/entityTypes/HCP",
"createdTime": 1387775204965,
"updatedBy": "mike",
"updatedTime": 1387790713198,
"roles": ["configuration/roles/Doctor"],
"attributes": {
"FirstName": [{
"type": "configuration/entityTypes/HCP/attributes/FirstName",
"ov": true,
"value": "John",
"URI": "entities/01QoskL/attributes/FirstName/4jB"
}],
"LastName": [{
"type": "configuration/entityTypes/HCP/attributes/LastName",
"ov": true,
"value": "Smith",
"URI": "entities/01QoskL/attributes/LastName/4rR"
}],
"NPI": [{
"type": "configuration/entityTypes/HCP/attributes/NPI",
"ov": true,
"value": "16",
"URI": "entities/01QoskL/attributes/NPI/4zh"
}],
"Education": [{
"label": ", Stanford
University School of Medicine ", "
value ": { "
University ": [ { "
type ":
"configuration/entityTypes/Individual/attributes/Education/attributes/University",
"ov": true,
"value": "Stanford University School of Medicine",
"URI": "entities/01QoskL/attributes/Education/4OX/University/4av"
}],
"YearOfGraduation": [{
"type": "configuration/entityTypes/Individual/attributes/Education/attributes/YearOfGraduation",
"ov": true,
"value": "2002",
"URI": "entities/01QoskL/attributes/Education/4OX/YearOfGraduation/4Wn"
}],
"Graduated": [{
"type": "configuration/entityTypes/Individual/attributes/Education/attributes/Graduated",
"ov": true,
"value": "true",
"URI": "entities/01QoskL/attributes/Education/4OX/Graduated/4Sf"
}]
},
"ov": true,
"URI": "entities/01QoskL/attributes/Education/4OX"
}]
}, "crosswalks": [{
"URI": "entities/01QoskL/crosswalks/3Wr",
"type": "configuration/sources/LNKD",
"value": "LNKD.24",
"createDate": "2013-12-23T08:59:49.738+04:00",
"updateDate": "2013-12-23T08:59:49.738+04:00",
"attributes": [
"entities/01QoskL/attributes/Education/4OX",
"entities/01QoskL/attributes/Education/4OX/Graduated/4Sf",
"entities/01QoskL/attributes/Education/4OX/YearOfGraduation/4Wn",
"entities/01QoskL/attributes/Education/4OX/University/4av",
"entities/01QoskL/attributes/FirstName/4jB",
"entities/01QoskL/attributes/LastName/4rR"
],
"singleAttributeUpdateDates": {}
}, {
"URI": "entities/01QoskL/crosswalks/2fB",
"type": "configuration/sources/LNKD",
"value": "LNKD.18",
"createDate": "2013-12-23T08:59:28.809+04:00",
"updateDate": "2013-12-23T08:59:28.809+04:00",
"attributes": [
"entities/01QoskL/attributes/Education/4OX",
"entities/01QoskL/attributes/Education/4OX/Graduated/4Sf",
"entities/01QoskL/attributes/Education/4OX/YearOfGraduation/4Wn",
"entities/01QoskL/attributes/Education/4OX/University/4av",
"entities/01QoskL/attributes/NPI/4zh", "entities/01QoskL/attributes/FirstName/4jB",
"entities/01QoskL/attributes/LastName/4rR"
],
"singleAttributeUpdateDates": {}
}, {
"URI": "entities/01QoskL/crosswalks/3rV",
"type": "configuration/sources/Reltio",
"value": "01QoskL",
"createDate": "2013-12-23T09:00:25.901+04:00",
"updateDate": "2013-12-23T09:00:25.901+04:00",
"attributes": [
"entities/01QoskL/attributes/NPI/4zh"
],
"singleAttributeUpdateDates": {
"entities/01QoskL/attributes/NPI/4zh": "2013-12-23T09:00:25.901+04:00"
}
}],
"tags": ["cardiology", "pediatrics"], "label": "John Smith"
}, "b": {
"URI": "entities/01QobhJ",
"type": "configuration/entityTypes/HCP",
"updatedBy": "mike",
"roles": ["configuration/roles/Doctor"],
"attributes": {
"FirstName": [{
"type": "configuration/entityTypes/HCP/attributes/FirstName",
"ov": true,
"value": "John",
"URI": "entities/01QoskL/attributes/FirstName/vp"
}],
"LastName": [{
"type": "configuration/entityTypes/HCP/attributes/LastName",
"ov": true,
"value": "Smith",
"URI": "entities/01QoskL/attributes/LastName/145"
}],
"NPI": [{
"type": "configuration/entityTypes/HCP/attributes/NPI",
"ov": true,
"value": "16",
"URI": "entities/01QoskL/attributes/NPI/49"
}, {
"type": "configuration/entityTypes/HCP/attributes/NPI",
"ov": true,
"value": "8",
"URI": "entities/01QoskL/attributes/NPI/CP"
}],
"Education": [{
"label": ", Stanford
University School of Medicine ", "
value ": { "
University ": [ { "
type ":
"configuration/entityTypes/Individual/attributes/Education/attributes/University",
"ov": true,
"value": "Stanford University School of Medicine",
"URI": "entities/01QoskL/attributes/Education/X3/University/jR"
}],
"YearOfGraduation": [{
"type": "configuration/entityTypes/Individual/attributes/Education/attributes/YearOfGraduation",
"ov": true,
"value": "2002",
"URI": "entities/01QoskL/attributes/Education/X3/YearOfGraduation/fJ"
}],
"Graduated": [{
"type": "configuration/entityTypes/Individual/attributes/Education/attributes/Graduated",
"ov": true,
"value": "true",
"URI": "entities/01QoskL/attributes/Education/X3/Graduated/bB"
}]
},
"ov": true,
"URI": "entities/01QoskL/attributes/Education/X3"
}]
}, "crosswalks": [{
"URI": "entities/01QoskL/crosswalks/1rd",
"type": "configuration/sources/Reltio",
"value": "01QobhJ",
"createDate": "2013-12-23T08:59:12.694+04:00",
"updateDate": "2013-12-23T08:59:12.694+04:00",
"attributes": [],
"singleAttributeUpdateDates": {}
}, {
"URI": "entities/01QoskL/crosswalks/fJ",
"type": "configuration/sources/LNKD",
"value": "LNKD.8",
"createDate": "2013-12-23T08:58:15.005+04:00",
"updateDate": "2013-12-23T08:58:15.005+04:00",
"attributes": [],
"singleAttributeUpdateDates": {}
}, {
"URI": "entities/01QoskL/crosswalks/1Wz",
"type": "configuration/sources/LNKD",
"value": "LNKD.14",
"createDate": "2013-12-23T08:58:37.854+04:00",
"updateDate": "2013-12-23T08:58:37.854+04:00",
"attributes": [],
"singleAttributeUpdateDates": {}
}], "tags": ["cardiology", "pediatrics"], "label": "John Smith"
}
}