Move Sources to a Folder
This example request illustrates how to move source descriptions from one folder to another. This is usually done for organizational purposes.
JSON
Request
POST /platform/sources/collections/sf-MMMM-123/descriptions
Accept: application/x-fs-v1+json
Content-Type: application/x-fs-v1+json
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE{
"sourceDescriptions" : [ {
"id" : "MMMM-MMM",
"about" : "https://familysearch.org/pal:/MM9.1.1/M9PJ-2JJ",
"attribution" : {
"contributor" : {
"resource" : "https://api.familysearch.org/platform/users/agents/123",
"resourceId" : "123"
},
"modified" : 1543677067759,
"changeMessage" : "This is the change message"
},
"citations" : [ {
"value" : "\"United States Census, 1900.\" database and digital images, FamilySearch (https://familysearch.org/: accessed 17 Mar 2012), Ethel Hollivet, 1900; citing United States Census Office, Washington, D.C., 1900 Population Census Schedules, Los Angeles, California, population schedule, Los Angeles Ward 6, Enumeration District 58, p. 20B, dwelling 470, family 501, FHL microfilm 1,240,090; citing NARA microfilm publication T623, roll 90."
} ],
"titles" : [ {
"value" : "1900 US Census, Ethel Hollivet"
} ],
"notes" : [ {
"text" : "Ethel Hollivet (line 75) with husband Albert Hollivet (line 74); also in the dwelling: step-father Joseph E Watkins (line 72), mother Lina Watkins (line 73), and grandmother -- Lina's mother -- Mary Sasnett (line 76). Albert's mother and brother also appear on this page -- Emma Hollivet (line 68), and Eddie (line 69)."
} ]
} ]
}
Response
HTTP/1.1 204 No Content
Content-type: application/x-fs-v1+json
X-processing-time: 3
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Content-length: 0
Content-location: /platform/sources/collections/sf-MMMM-123/descriptions
Link: <https://api.familysearch.org/platform/sources/collections/sf-MMMM-123/descriptions?flag=fsh>; rel="self"
Link: <https://api.familysearch.org/platform/sources/collections/sf-MMMM-123?flag=fsh>; rel="collection"
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Cache-control: no-transform, must-revalidate, max-age=0
XML
Request
POST /platform/sources/collections/sf-MMMM-123/descriptions
Accept: application/x-fs-v1+xml
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">
<sourceDescription about="https://familysearch.org/pal:/MM9.1.1/M9PJ-2JJ" id="MMMM-MMM">
<citation>
<value>"United States Census, 1900." database and digital images, FamilySearch (https://familysearch.org/: accessed 17 Mar 2012), Ethel Hollivet, 1900; citing United States Census Office, Washington, D.C., 1900 Population Census Schedules, Los Angeles, California, population schedule, Los Angeles Ward 6, Enumeration District 58, p. 20B, dwelling 470, family 501, FHL microfilm 1,240,090; citing NARA microfilm publication T623, roll 90.</value>
</citation>
<title>1900 US Census, Ethel Hollivet</title>
<note>
<text>Ethel Hollivet (line 75) with husband Albert Hollivet (line 74); also in the dwelling: step-father Joseph E Watkins (line 72), mother Lina Watkins (line 73), and grandmother -- Lina's mother -- Mary Sasnett (line 76). Albert's mother and brother also appear on this page -- Emma Hollivet (line 68), and Eddie (line 69).</text>
</note>
<attribution>
<contributor resource="https://api.familysearch.org/platform/users/agents/123" resourceId="123"/>
<modified>2018-12-01T08:11:07.759-07:00</modified>
<changeMessage>This is the change message</changeMessage>
</attribution>
</sourceDescription>
</fs:familysearch>
Response
HTTP/1.1 204 No Content
Content-type: application/x-fs-v1+xml
X-processing-time: 3
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Content-length: 0
Content-location: /platform/sources/collections/sf-MMMM-123/descriptions
Link: <https://api.familysearch.org/platform/sources/collections/sf-MMMM-123/descriptions?flag=fsh>; rel="self"
Link: <https://api.familysearch.org/platform/sources/collections/sf-MMMM-123?flag=fsh>; rel="collection"
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Cache-control: no-transform, must-revalidate, max-age=0
Updated 5 days ago