Set Child-and-Parents Relationship Parents Ordering
This example request illustrates how to set the child-and-parents relationship parents ordering. The relationship with the given parents must already exist.
JSON
Request
POST /platform/tree/child-and-parents-relationships/CPID/parents/order
Content-Type: application/x-fs-v1+json
X-Reason: Birth Certificate indicates proper parents
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE
{
"childAndParentsRelationships" : [ {
"id" : "CPID",
"attribution" : {
"changeMessage" : "...change message..."
},
"parent1" : {
"resource" : "https://api.familysearch.org/platform/tree/persons/femaleParentA",
"resourceId" : "femaleParentA"
},
"parent2" : {
"resource" : "https://api.familysearch.org/platform/tree/persons/femaleParentB",
"resourceId" : "femaleParentB"
}
} ]
}
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/child-and-parents-relationships/CPID/parents/order Date: Sun, 03 Apr 1836 10:00:00 GMT-5 Cache-control: no-cache, no-store, no-transform, must-revalidate, max-age=0
Sending...
Feedback was sent.
Can't send feedback. Retry in 5 seconds.