Read Child-and-Parents Relationship
This example request illustrates how to read a child-and-parents relationship.
JSON
Request
GET /platform/tree/child-and-parents-relationships/PPPX-PP0
Accept: application/x-fs-v1+json
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE
Response
HTTP/1.1 200 OK
Last-modified: Sat, 01 Dec 2018 04:59:53 CET
Content-type: application/x-fs-v1+json
X-processing-time: 3
Etag: "1543638712000"
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Content-location: /platform/tree/child-and-parents-relationships/PPPX-PP0
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Cache-control: no-transform, must-revalidate, max-age=0
Transfer-encoding: chunked{
"childAndParentsRelationships" : [ {
"id" : "PPPX-PP0",
"parent1" : {
"resource" : "https://api.familysearch.org/platform/tree/persons/PPPX-MP1",
"resourceId" : "PPPX-MP1"
},
"parent2" : {
"resource" : "https://api.familysearch.org/platform/tree/persons/PPPX-FP2",
"resourceId" : "PPPX-FP2"
},
"child" : {
"resource" : "https://api.familysearch.org/platform/tree/persons/PPPX-PP3",
"resourceId" : "PPPX-PP3"
},
"links" : {
"parent1" : {
"href" : "https://api.familysearch.org/platform/tree/persons/PPPX-MP1?flag=fsh"
},
"parent2-role" : {
"href" : "https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPPX-PP0/parent2?flag=fsh"
},
"source-references" : {
"href" : "https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPPX-PP0/source-references?flag=fsh"
},
"change-history" : {
"href" : "https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPPX-PP0/changes?flag=fsh"
},
"notes" : {
"href" : "https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPPX-PP0/notes?flag=fsh"
},
"source-descriptions" : {
"href" : "https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPPX-PP0/sources?flag=fsh"
},
"parent1-role" : {
"href" : "https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPPX-PP0/parent1?flag=fsh"
},
"collection" : {
"href" : "https://api.familysearch.org/collections/tree?flag=fsh"
},
"relationship" : {
"href" : "https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPPX-PP0?flag=fsh"
},
"parent2" : {
"href" : "https://api.familysearch.org/platform/tree/persons/PPPX-FP2?flag=fsh"
},
"child" : {
"href" : "https://api.familysearch.org/platform/tree/persons/PPPX-PP3?flag=fsh"
}
},
"parent1Facts" : [ {
"id" : "C.1",
"attribution" : {
"contributor" : {
"resource" : "https://api.familysearch.org/platform/users/agents/JNYR-KJP"
}
},
"type" : "http://gedcomx.org/AdoptiveParent"
} ],
"parent2Facts" : [ {
"id" : "C.2",
"attribution" : {
"contributor" : {
"resource" : "https://api.familysearch.org/platform/users/agents/JNYR-KJP"
}
},
"type" : "http://gedcomx.org/BiologicalParent"
} ]
} ]
}
XML
Request
GET /platform/tree/child-and-parents-relationships/PPPX-PP0
Accept: application/x-fs-v1+xml
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE
Response
HTTP/1.1 200 OK
Last-modified: Sat, 01 Dec 2018 04:59:53 CET
Content-type: application/x-fs-v1+xml
X-processing-time: 3
Etag: "1543638712000"
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Content-location: /platform/tree/child-and-parents-relationships/PPPX-PP0
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Cache-control: no-transform, must-revalidate, max-age=0
Transfer-encoding: chunked<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<fs:familysearch xmlns:fs="http://familysearch.org/v1/" xmlns="http://gedcomx.org/v1/" xmlns:atom="http://www.w3.org/2005/Atom">
<fs:childAndParentsRelationship id="PPPX-PP0">
<link rel="change-history" href="https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPPX-PP0/changes?flag=fsh"/>
<link rel="child" href="https://api.familysearch.org/platform/tree/persons/PPPX-PP3?flag=fsh"/>
<link rel="collection" href="https://api.familysearch.org/collections/tree?flag=fsh"/>
<link rel="notes" href="https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPPX-PP0/notes?flag=fsh"/>
<link rel="parent1-role" href="https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPPX-PP0/parent1?flag=fsh"/>
<link rel="parent1" href="https://api.familysearch.org/platform/tree/persons/PPPX-MP1?flag=fsh"/>
<link rel="parent2-role" href="https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPPX-PP0/parent2?flag=fsh"/>
<link rel="parent2" href="https://api.familysearch.org/platform/tree/persons/PPPX-FP2?flag=fsh"/>
<link rel="relationship" href="https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPPX-PP0?flag=fsh"/>
<link rel="source-descriptions" href="https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPPX-PP0/sources?flag=fsh"/>
<link rel="source-references" href="https://api.familysearch.org/platform/tree/child-and-parents-relationships/PPPX-PP0/source-references?flag=fsh"/>
<fs:parent1 resource="https://api.familysearch.org/platform/tree/persons/PPPX-MP1" resourceId="PPPX-MP1"/>
<fs:parent2 resource="https://api.familysearch.org/platform/tree/persons/PPPX-FP2" resourceId="PPPX-FP2"/>
<fs:child resource="https://api.familysearch.org/platform/tree/persons/PPPX-PP3" resourceId="PPPX-PP3"/>
<fs:parent1Fact type="http://gedcomx.org/AdoptiveParent" id="C.1">
<attribution>
<contributor resource="https://api.familysearch.org/platform/users/agents/JNYR-KJP"/>
</attribution>
</fs:parent1Fact>
<fs:parent2Fact type="http://gedcomx.org/BiologicalParent" id="C.2">
<attribution>
<contributor resource="https://api.familysearch.org/platform/users/agents/JNYR-KJP"/>
</attribution>
</fs:parent2Fact>
</fs:childAndParentsRelationship>
</fs:familysearch>
Updated 5 days ago