Update Preferred Spouse Relationship
This example request illustrates how to update a user's preferred spouse relationship for a person. Note the Location
header which indicates the preferred spouse relationship. Note also that a user's preference may be a child-and-parents relationship.
JSON
Request
PUT /platform/tree/users/54321/preferred-spouse-relationships/12345 Location: https://api.familysearch.org/platform/tree/couple-relationships/12345 Content-Type: application/x-gedcomx-v1+json Authorization: Bearer YOUR_ACCESS_TOKEN_HERE
Response
HTTP/1.1 204 No Content Content-type: text/html X-processing-time: 3 Vary: Accept,Accept-Language,Accept-Encoding,Expect Content-length: 0 Content-location: /platform/tree/users/54321/preferred-spouse-relationships/12345 Date: Sun, 03 Apr 1836 10:00:00 GMT-5 Cache-control: no-transform, must-revalidate, max-age=0
XML
Request
PUT /platform/tree/users/54321/preferred-spouse-relationships/12345 Location: https://api.familysearch.org/platform/tree/couple-relationships/12345 Content-Type: application/x-gedcomx-v1+xml Authorization: Bearer YOUR_ACCESS_TOKEN_HERE
Response
HTTP/1.1 204 No Content Content-type: text/html X-processing-time: 3 Vary: Accept,Accept-Language,Accept-Encoding,Expect Content-length: 0 Content-location: /platform/tree/users/54321/preferred-spouse-relationships/12345 Date: Sun, 03 Apr 1836 10:00:00 GMT-5 Cache-control: no-transform, must-revalidate, max-age=0
Sending...
Feedback was sent.
Can't send feedback. Retry in 5 seconds.