Set Couple Relationship Spouses Ordering

This example request illustrates how to set the couple relationship spouses ordering. The relationship with the given persons must already exist.

JSON

Request

POST /platform/tree/couple-relationships/CRID/spouses/order
Content-Type: application/x-fs-v1+json
X-Reason: Marriage Certificate indicates proper spouses
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE
                
                  {
  "relationships" : [ {
    "id" : "CRID",
    "attribution" : {
      "changeMessage" : "...change message..."
    },
    "type" : "http://gedcomx.org/Couple",
    "person1" : {
      "resource" : "https://api.familysearch.org/platform/tree/persons/femaleSpouseA",
      "resourceId" : "femaleSpouseA"
    },
    "person2" : {
      "resource" : "https://api.familysearch.org/platform/tree/persons/femaleSpouseB",
      "resourceId" : "femaleSpouseB"
    }
  } ]
}
                
              

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/couple-relationships/CRID/spouses/order
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Cache-control: no-cache, no-store, no-transform, must-revalidate, max-age=0
                
              

Change Language

Feedback

Sending...

Feedback was sent.

Can't send feedback. Retry in 5 seconds.