Create Memories Comment

This example request illustrates how to create a comment on a memory.

JSON

Request

POST /platform/memories/memories/AR-1234/comments
Content-Type: application/x-fs-v1+json
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE{
  "discussions" : [ {
    "comments" : [ {
      "text" : "Just a comment."
    } ]
  } ]
}

Response

HTTP/1.1 201 Created
Content-type: text/html
X-entity-id: CM-1234
X-processing-time: 3
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Cache-control: no-cache, no-store, no-transform, must-revalidate, max-age=0
Location: https://api.familysearch.org/platform/memories/memories/AR-1234/comments/CM-1234
Transfer-encoding: chunked

XML

Request

POST /platform/memories/memories/AR-1234/comments
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>
        <fs:comment>
            <fs:text>Just a comment.</fs:text>
        </fs:comment>
    </fs:discussion>
</fs:familysearch>

Response

HTTP/1.1 201 Created
Content-type: text/html
X-entity-id: CM-1234
X-processing-time: 3
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Cache-control: no-cache, no-store, no-transform, must-revalidate, max-age=0
Location: https://api.familysearch.org/platform/memories/memories/AR-1234/comments/CM-1234
Transfer-encoding: chunked