Create Child-and-Parents Relationship Source Reference
This example request illustrates how to add a source reference to a child-and-parents relationship. This is done to validate the relationship.
JSON
Request
POST /platform/tree/child-and-parents-relationships/RRRR-RRR/source-references
Content-Type: application/x-fs-v1+json
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE{
"childAndParentsRelationships" : [ {
"sources" : [ {
"attribution" : {
"changeMessage" : "Family is at the same address found in other sources associated with this family. Names are a good match. Estimated births are reasonable."
},
"description" : "https://api.familysearch.org/platform/sources/descriptions/MMMM-MMM",
"tags" : [ {
"resource" : "http://gedcomx.org/Name"
}, {
"resource" : "http://gedcomx.org/Gender"
}, {
"resource" : "http://gedcomx.org/Birth"
} ]
} ]
} ]
}
Response
HTTP/1.1 201 Created
Content-type: text/html
X-entity-id: SRSR-R01
X-processing-time: 3
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Content-location: /platform/tree/child-and-parents-relationships/RRRR-RRR/source-references
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Cache-control: no-transform, must-revalidate, max-age=0
Location: https://api.familysearch.org/platform/tree/child-and-parents-relationships/RRRR-RRR/source-references/SRSR-R01
Transfer-encoding: chunked
XML
Request
POST /platform/tree/child-and-parents-relationships/RRRR-RRR/source-references
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>
<source description="https://api.familysearch.org/platform/sources/descriptions/MMMM-MMM">
<fs:tag resource="http://gedcomx.org/Name"/>
<fs:tag resource="http://gedcomx.org/Gender"/>
<fs:tag resource="http://gedcomx.org/Birth"/>
<attribution>
<changeMessage>Family is at the same address found in other sources associated with this family. Names are a good match. Estimated births are reasonable.</changeMessage>
</attribution>
</source>
</fs:childAndParentsRelationship>
</fs:familysearch>
Response
HTTP/1.1 201 Created
Content-type: text/html
X-entity-id: SRSR-R01
X-processing-time: 3
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Content-location: /platform/tree/child-and-parents-relationships/RRRR-RRR/source-references
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Cache-control: no-transform, must-revalidate, max-age=0
Location: https://api.familysearch.org/platform/tree/child-and-parents-relationships/RRRR-RRR/source-references/SRSR-R01
Transfer-encoding: chunked
Updated 5 days ago