Create Genealogies Tree

This example request illustrates how to create a genealogies tree.

JSON

Request

POST /platform/genealogies/trees
Content-Type: application/x-gedcomx-v1+json
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE{
  "sourceDescriptions" : [ {
    "id" : "54321",
    "titles" : [ {
      "value" : "A description of my new tree."
    } ]
  } ]
}

Response

HTTP/1.1 201 Created
Content-type: text/html
X-entity-id: 2:2:12345
X-processing-time: 3
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Link: <https://api.familysearch.org/platform/genealogies/trees/2:2:12345/persons?flag=fsh>; rel="persons"
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Location: https://api.familysearch.org/platform/genealogies/trees/2:2:12345
Transfer-encoding: chunked

XML

Request

POST /platform/genealogies/trees
Content-Type: application/x-gedcomx-v1+xml
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<gedcomx xmlns:fs="http://familysearch.org/v1/" xmlns="http://gedcomx.org/v1/" xmlns:atom="http://www.w3.org/2005/Atom">
    <sourceDescription id="54321">
        <title>A description of my new tree.</title>
    </sourceDescription>
</gedcomx>

Response

HTTP/1.1 201 Created
Content-type: text/html
X-entity-id: 2:2:12345
X-processing-time: 3
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Link: <https://api.familysearch.org/platform/genealogies/trees/2:2:12345/persons?flag=fsh>; rel="persons"
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Location: https://api.familysearch.org/platform/genealogies/trees/2:2:12345
Transfer-encoding: chunked