Read Couple Relationship

This example request illustrates how to read a couple relationship.

JSON

Request

GET /platform/tree/couple-relationships/crid
Accept: application/x-gedcomx-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-gedcomx-v1+json
X-processing-time: 3
Etag: "1543638712000"
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Content-location: /platform/tree/couple-relationships/crid
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Cache-control: no-transform, must-revalidate, max-age=0
Transfer-encoding: chunked{
  "relationships" : [ {
    "id" : "crid",
    "type" : "http://gedcomx.org/Couple",
    "person1" : {
      "resource" : "https://api.familysearch.org/platform/tree/persons/FJP-M4RK",
      "resourceId" : "FJP-M4RK"
    },
    "person2" : {
      "resource" : "https://api.familysearch.org/platform/tree/persons/JRW-NMSD",
      "resourceId" : "JRW-NMSD"
    },
    "links" : {
      "source-references" : {
        "href" : "https://api.familysearch.org/platform/tree/couple-relationships/crid/source-references?flag=fsh"
      },
      "change-history" : {
        "href" : "https://api.familysearch.org/platform/tree/couple-relationships/crid/changes?flag=fsh"
      },
      "person2" : {
        "href" : "https://api.familysearch.org/platform/tree/persons/JRW-NMSD?flag=fsh"
      },
      "notes" : {
        "href" : "https://api.familysearch.org/platform/tree/couple-relationships/crid/notes?flag=fsh"
      },
      "person1" : {
        "href" : "https://api.familysearch.org/platform/tree/persons/FJP-M4RK?flag=fsh"
      },
      "source-descriptions" : {
        "href" : "https://api.familysearch.org/platform/tree/couple-relationships/crid/sources?flag=fsh"
      },
      "collection" : {
        "href" : "https://api.familysearch.org/collections/tree?flag=fsh"
      },
      "relationship" : {
        "href" : "https://api.familysearch.org/platform/tree/couple-relationships/crid?flag=fsh"
      }
    },
    "facts" : [ {
      "attribution" : {
        "contributor" : {
          "resource" : "https://api.familysearch.org/platform/users/agents/JNYR-KJP"
        }
      },
      "type" : "http://gedcomx.org/Marriage",
      "date" : {
        "original" : "June 1800",
        "formal" : "+1800-06"
      },
      "place" : {
        "original" : "Provo, Utah, Utah, United States"
      }
    } ]
  } ]
}

XML

Request

GET /platform/tree/couple-relationships/crid
Accept: application/x-gedcomx-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-gedcomx-v1+xml
X-processing-time: 3
Etag: "1543638712000"
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Content-location: /platform/tree/couple-relationships/crid
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"?>
<gedcomx xmlns:fs="http://familysearch.org/v1/" xmlns="http://gedcomx.org/v1/" xmlns:atom="http://www.w3.org/2005/Atom">
    <relationship type="http://gedcomx.org/Couple" id="crid">
        <link rel="change-history" href="https://api.familysearch.org/platform/tree/couple-relationships/crid/changes?flag=fsh"/>
        <link rel="collection" href="https://api.familysearch.org/collections/tree?flag=fsh"/>
        <link rel="notes" href="https://api.familysearch.org/platform/tree/couple-relationships/crid/notes?flag=fsh"/>
        <link rel="person1" href="https://api.familysearch.org/platform/tree/persons/FJP-M4RK?flag=fsh"/>
        <link rel="person2" href="https://api.familysearch.org/platform/tree/persons/JRW-NMSD?flag=fsh"/>
        <link rel="relationship" href="https://api.familysearch.org/platform/tree/couple-relationships/crid?flag=fsh"/>
        <link rel="source-descriptions" href="https://api.familysearch.org/platform/tree/couple-relationships/crid/sources?flag=fsh"/>
        <link rel="source-references" href="https://api.familysearch.org/platform/tree/couple-relationships/crid/source-references?flag=fsh"/>
        <person1 resource="https://api.familysearch.org/platform/tree/persons/FJP-M4RK" resourceId="FJP-M4RK"/>
        <person2 resource="https://api.familysearch.org/platform/tree/persons/JRW-NMSD" resourceId="JRW-NMSD"/>
        <fact type="http://gedcomx.org/Marriage">
            <attribution>
                <contributor resource="https://api.familysearch.org/platform/users/agents/JNYR-KJP"/>
            </attribution>
            <date>
                <original>June 1800</original>
                <formal>+1800-06</formal>
            </date>
            <place>
                <original>Provo, Utah, Utah, United States</original>
            </place>
        </fact>
    </relationship>
</gedcomx>