Update Child-and-Parents Relationship
This example request illustrates how to update a child-and-parents relationship conclusion. If a new conclusion, such as the lineage type to the parent2, is to be added to the child-and-parents relationship, the conclusion is provided without an ID. If an existing conclusion is to be updated on the child-and-parents relationship, the ID of the conclusion must be provided.
JSON
Request
POST /platform/tree/child-and-parents-relationships/PPPX-PP0
Content-Type: application/x-fs-v1+json
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE{
"childAndParentsRelationships" : [ {
"parent2" : {
"resource" : "https://api.familysearch.org/platform/tree/persons/PPPX-FP2",
"resourceId" : "PPPX-FP2"
},
"parent2Facts" : [ {
"id" : "C.1",
"attribution" : {
"changeMessage" : "...change message..."
},
"type" : "http://gedcomx.org/AdoptiveParent"
} ]
} ]
}
Response
HTTP/1.1 204 No Content
Content-type: text/html
X-processing-time: 3
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Content-length: 0
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
XML
Request
POST /platform/tree/child-and-parents-relationships/PPPX-PP0
Content-Type: application/x-fs-v1+xml
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE<?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>
<fs:parent2 resource="https://api.familysearch.org/platform/tree/persons/PPPX-FP2" resourceId="PPPX-FP2"/>
<fs:parent2Fact type="http://gedcomx.org/AdoptiveParent" id="C.1">
<attribution>
<changeMessage>...change message...</changeMessage>
</attribution>
</fs:parent2Fact>
</fs:childAndParentsRelationship>
</fs:familysearch>
Response
HTTP/1.1 204 No Content
Content-type: text/html
X-processing-time: 3
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Content-length: 0
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
Updated 5 days ago