Read Preferred Parent Relationship
This example request illustrates how to read a user's preferred parent relationship for a person. Note the Location
header which indicates the preferred parent relationship.
JSON
Request
GET /platform/tree/users/54321/preferred-parent-relationships/12345 Accept: application/x-gedcomx-v1+json Authorization: Bearer YOUR_ACCESS_TOKEN_HERE
Response
HTTP/1.1 303 See Other Content-type: application/x-gedcomx-v1+json X-processing-time: 3 Vary: Accept,Accept-Language,Accept-Encoding,Expect Content-location: /platform/tree/users/54321/preferred-parent-relationships/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/child-and-parents-relationships/23456 Transfer-encoding: chunked
XML
Request
GET /platform/tree/users/54321/preferred-parent-relationships/12345 Accept: application/x-gedcomx-v1+xml Authorization: Bearer YOUR_ACCESS_TOKEN_HERE
Response
HTTP/1.1 303 See Other Content-type: application/x-gedcomx-v1+xml X-processing-time: 3 Vary: Accept,Accept-Language,Accept-Encoding,Expect Content-location: /platform/tree/users/54321/preferred-parent-relationships/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/child-and-parents-relationships/23456 Transfer-encoding: chunked
Sending...
Feedback was sent.
Can't send feedback. Retry in 5 seconds.