media
Manage photos, documents, and stories in an Ancestry family tree: list, view, download, upload, update, set as profile photo, copy, or delete media for a person or entire tree.
Instructions
Photos, documents and stories in a tree. Actions: list (for a person, or the whole tree when personId is omitted) · get · download (full-size file to outPath, or base64; maxSide scales) · upload (local file → person gallery) · update (title/date/description/location; omitted fields kept) · set_profile_photo · copy_from_tree (copy a photo from another member's public tree or a photo hint into destPersonIds) · delete. Attaching media to a fact is fact.attach_media.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| page | No | ||
| cropX | No | ||
| cropY | No | ||
| title | No | ||
| action | Yes | ||
| treeId | No | Tree id from tree.list | |
| maxSide | No | ||
| mediaId | No | ||
| outPath | No | download: absolute local path to write | |
| cropSize | No | ||
| filePath | No | upload: absolute local path | |
| location | No | ||
| personId | No | Plain numeric person id (from person.list/find/get) | |
| description | No | ||
| sourceTreeId | No | ||
| destPersonIds | No | ||
| asPrimaryPhoto | No | ||
| sourcePersonId | No |