Read User Source Folders

This example request illustrates how to read the list of source folders of a specific user.

JSON

Request

GET /platform/sources/CCCC-CCC/collections
Accept: application/x-fs-v1+json
Content-Type: application/x-fs-v1+json
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE

Response

HTTP/1.1 200 OK
Content-type: application/x-fs-v1+json
X-processing-time: 3
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Content-location: /platform/sources/CCCC-CCC/collections
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Cache-control: no-transform, must-revalidate, max-age=0
Transfer-encoding: chunked{
  "links" : {
    "collection" : {
      "href" : "https://api.familysearch.org/platform/sources/collections?flag=fsh"
    }
  },
  "sourceDescriptions" : [ {
    "attribution" : {
      "contributor" : {
        "resource" : "https://familysearch.org/platform/users/agents/123"
      },
      "modified" : 1543677067759,
      "changeMessage" : "This is the change message"
    },
    "titles" : [ {
      "value" : "Collection Title"
    } ]
  } ],
  "collections" : [ {
    "id" : "MMMM-MMM",
    "title" : "Collection Title",
    "attribution" : {
      "contributor" : {
        "resource" : "https://familysearch.org/platform/users/agents/123"
      },
      "modified" : 1543677067759,
      "changeMessage" : "This is the change message"
    },
    "links" : {
      "source-descriptions" : {
        "href" : "https://api.familysearch.org/platform/sources/collections/MMMM-MMM/descriptions?flag=fsh"
      },
      "self" : {
        "href" : "https://api.familysearch.org/platform/sources/collections/MMMM-MMM?flag=fsh"
      }
    }
  } ]
}

XML

Request

GET /platform/sources/CCCC-CCC/collections
Accept: application/x-fs-v1+xml
Content-Type: application/x-fs-v1+xml
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE

Response

HTTP/1.1 200 OK
Content-type: application/x-fs-v1+xml
X-processing-time: 3
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Content-location: /platform/sources/CCCC-CCC/collections
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Cache-control: no-transform, must-revalidate, max-age=0
Transfer-encoding: chunked<?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">
    <link rel="collection" href="https://api.familysearch.org/platform/sources/collections?flag=fsh"/>
    <sourceDescription>
        <title>Collection Title</title>
        <attribution>
            <contributor resource="https://familysearch.org/platform/users/agents/123"/>
            <modified>2018-12-01T08:11:07.759-07:00</modified>
            <changeMessage>This is the change message</changeMessage>
        </attribution>
    </sourceDescription>
    <collection id="MMMM-MMM">
        <link rel="self" href="https://api.familysearch.org/platform/sources/collections/MMMM-MMM?flag=fsh"/>
        <link rel="source-descriptions" href="https://api.familysearch.org/platform/sources/collections/MMMM-MMM/descriptions?flag=fsh"/>
        <title>Collection Title</title>
        <attribution>
            <contributor resource="https://familysearch.org/platform/users/agents/123"/>
            <modified>2018-12-01T08:11:07.759-07:00</modified>
            <changeMessage>This is the change message</changeMessage>
        </attribution>
    </collection>
</fs:familysearch>