Update Discussion
This example request illustrates how to update a discussion. Discussions can be updated only by the user that created the discussion.
JSON
Request
POST /platform/discussions/discussions/dis-MMMM-MMM
Content-Type: application/x-fs-v1+json
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE
{
"discussions" : [ {
"id" : "dis-MMMM-MMM",
"title" : "1900 US Census, Ethel Hollivet",
"details" : "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). ",
"contributor" : {
"resource" : "https://familysearch.org/platform/users/agents/JNYR-KJP",
"resourceId" : "JNYR-KJP"
},
"numberOfComments" : 2
} ]
}
Response
HTTP/1.1 204 No Content Content-type: text/html X-processing-time: 3 Vary: Accept,Accept-Language,Accept-Encoding,Expect Content-length: 0 Content-location: /platform/discussions/discussions/dis-MMMM-MMM Date: Sun, 03 Apr 1836 10:00:00 GMT-5 Cache-control: no-transform, must-revalidate, max-age=0
XML
Request
POST /platform/discussions/discussions/dis-MMMM-MMM
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">
<fs:discussion id="dis-MMMM-MMM">
<fs:title>1900 US Census, Ethel Hollivet</fs:title>
<fs:details>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). </fs:details>
<fs:contributor resource="https://familysearch.org/platform/users/agents/JNYR-KJP" resourceId="JNYR-KJP"/>
<fs:numberOfComments>2</fs:numberOfComments>
</fs:discussion>
</fs:familysearch>
Response
HTTP/1.1 204 No Content Content-type: text/html X-processing-time: 3 Vary: Accept,Accept-Language,Accept-Encoding,Expect Content-length: 0 Content-location: /platform/discussions/discussions/dis-MMMM-MMM Date: Sun, 03 Apr 1836 10:00:00 GMT-5 Cache-control: no-transform, must-revalidate, max-age=0
Sending...
Feedback was sent.
Can't send feedback. Retry in 5 seconds.