Create Ordinance Reservations
This example request illustrates how to create ordinance reservations for the current user.
JSON
Request
POST /platform/ordinances/persons/ordinances/reservations
Content-Type: application/x-fs-v1+json
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE
{
"persons" : [ {
"id" : "JJMM-PPP",
"ordinances" : [ {
"type" : "http://churchofjesuschrist.org/Endowment"
}, {
"type" : "http://churchofjesuschrist.org/SealingChildToParents",
"participants" : [ {
"roleType" : "http://familysearch.org/v1/Parent",
"sexType" : "http://familysearch.org/v1/Male",
"participant" : {
"resource" : "https/api.familysearch.org/platform/tree/persons/JJMM-FFF",
"resourceId" : "JJMM-FFF"
}
}, {
"roleType" : "http://familysearch.org/v1/Parent",
"sexType" : "http://familysearch.org/v1/Female",
"participant" : {
"resource" : "https/api.familysearch.org/platform/tree/persons/JJMM-MMM",
"resourceId" : "JJMM-MMM"
}
} ]
} ]
} ]
}
Response
HTTP/1.1 201 Created Content-type: text/html X-processing-time: 3 Vary: Accept,Accept-Language,Accept-Encoding,Expect Link: <https://api.familysearch.org/platform/ordinances/family-name-cards?flag=fsh>; rel="temple-family-name-cards" Date: Sun, 03 Apr 1836 10:00:00 GMT-5 Cache-control: no-transform, must-revalidate, max-age=0 Transfer-encoding: chunked
XML
Request
POST /platform/ordinances/persons/ordinances/reservations
Content-Type: application/x-fs-v1+xml
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<fs:familysearch xmlns:fs="http://familysearch.org/v1/" xmlns="http://gedcomx.org/v1/" xmlns:atom="http://www.w3.org/2005/Atom">
<person id="JJMM-PPP">
<fs:ordinance type="http://churchofjesuschrist.org/Endowment"/>
<fs:ordinance type="http://churchofjesuschrist.org/SealingChildToParents">
<fs:participant roleType="http://familysearch.org/v1/Parent" sexType="http://familysearch.org/v1/Male">
<fs:participant resource="https/api.familysearch.org/platform/tree/persons/JJMM-FFF" resourceId="JJMM-FFF"/>
</fs:participant>
<fs:participant roleType="http://familysearch.org/v1/Parent" sexType="http://familysearch.org/v1/Female">
<fs:participant resource="https/api.familysearch.org/platform/tree/persons/JJMM-MMM" resourceId="JJMM-MMM"/>
</fs:participant>
</fs:ordinance>
</person>
</fs:familysearch>
Response
HTTP/1.1 201 Created Content-type: text/html X-processing-time: 3 Vary: Accept,Accept-Language,Accept-Encoding,Expect Link: <https://api.familysearch.org/platform/ordinances/family-name-cards?flag=fsh>; rel="temple-family-name-cards" Date: Sun, 03 Apr 1836 10:00:00 GMT-5 Cache-control: no-transform, must-revalidate, max-age=0 Transfer-encoding: chunked
Sending...
Feedback was sent.
Can't send feedback. Retry in 5 seconds.