Upload PDF Document

This example request illustrates how to upload a PDF document. To do this, post the file to the Memories resource with the Content-type set to application/pdf. Provide the title of the PDF as a query parameter called "title". Provide the filename using the Content-Disposition header.

Request

POST /platform/memories/memories?title=History+of+Israel+Heaton
Content-Disposition: attachment; filename="israel-heaton-history.pdf"
Content-Type: application/pdf
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE

...(binary bytes of the PDF)...

Response

HTTP/1.1 201 Created
Content-type: text/html
X-entity-id: 12345
X-processing-time: 3
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Cache-control: no-cache, no-store, no-transform, must-revalidate, max-age=0
Location: https://api.familysearch.org/platform/memories/memories/12345
Transfer-encoding: chunked