Upload Photo for Person
This example request illustrates how to upload a photo and attach it to a person in the Tree.
Request
POST /platform/tree/persons/KWCR-JWS/memories?title=Missionary+Portrait&personName=Elder+Heaton
Content-Disposition: attachment; filename="alma-mission.jpg"
Content-Type: image/jpeg
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE
...(binary bytes of the image)...
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
Content-location: /platform/tree/persons/KWCR-JWS/memories
Link: <https://api.familysearch.org/platform/tree/persons/KWCR-JWS?flag=fsh>; rel="person"
Link: <https://api.familysearch.org/platform/memories/memories/12345?flag=fsh>; rel="memory"
Link: <https://api.familysearch.org/platform/tree/persons/KWCR-JWS/memory-references/23000>; rel="memory-reference"; title="Person Memory Reference"
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Cache-control: no-transform, must-revalidate, max-age=0
Location: https://api.familysearch.org/platform/tree/persons/KWCR-JWS/memory-references/23000
Transfer-encoding: chunked
Updated 5 days ago