Create Person Life Sketch
This example illustrates how to create a life sketch conclusion for a Tree person.
JSON
Request
POST /platform/tree/persons/12345
Content-Type: application/x-fs-v1+json
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE
{
"persons" : [ {
"id" : "12345",
"facts" : [ {
"attribution" : {
"changeMessage" : "...change message..."
},
"type" : "http://familysearch.org/v1/LifeSketch",
"value" : "What a long and colorful life this person had!\nDetails are numerous and humorous."
} ]
} ]
}
Response
HTTP/1.1 201 Created Content-type: text/html X-entity-id: 1 X-processing-time: 3 Vary: Accept,Accept-Language,Accept-Encoding,Expect Content-location: /platform/tree/persons/12345 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/persons/12345/conclusions/1 Transfer-encoding: chunked
XML
Request
POST /platform/tree/persons/12345
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">
<person id="12345">
<fact type="http://familysearch.org/v1/LifeSketch">
<attribution>
<changeMessage>...change message...</changeMessage>
</attribution>
<value>What a long and colorful life this person had!
Details are numerous and humorous.</value>
</fact>
</person>
</fs:familysearch>
Response
HTTP/1.1 201 Created Content-type: text/html X-entity-id: 1 X-processing-time: 3 Vary: Accept,Accept-Language,Accept-Encoding,Expect Content-location: /platform/tree/persons/12345 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/persons/12345/conclusions/1 Transfer-encoding: chunked
Sending...
Feedback was sent.
Can't send feedback. Retry in 5 seconds.