Get a list of comments for a note


GET /api/project/:projectId/note/:noteId/comment/in_tree

Returns a list of comments for a given note.

Endpoint URL

https://<space_id>.repsona.com/api/project/:projectId/note/:noteId/comment/in_tree

Authorization

Owner Admin Member

Path parameters

NameTypeDescription
projectId*stringProject ID
noteId*stringNote ID

Example responses

{
  "requestedBy": 1,
  "project": 1,
  "noteComments": [
    {
      "files": [],
      "createdAt": 1672498800000,
      "updatedAt": 1672498800000,
      "id": 1746,
      "deletedAt": null,
      "comment": "I'll try.",
      "space": 1,
      "user": {
        "id": 1746,
        "name": "Seb",
        "fullName": "Seb Osborn",
        "avatarUrl": "/dummy/avatar2.png",
        "extra": null
      },
      "parent": null,
      "note": 2,
      "children": [
        {
          "files": [],
          "createdAt": 1672498800000,
          "updatedAt": 1672498800000,
          "id": 1746,
          "deletedAt": null,
          "comment": "What do you think?",
          "space": 1,
          "user": {
            "id": 1746,
            "name": "Rita",
            "fullName": "Rita Hurst",
            "avatarUrl": "/dummy/avatar5.png",
            "extra": null
          },
          "parent": 5,
          "note": 2,
          "children": [
            {
              "files": [
                {
                  "createdAt": 1672498800000,
                  "updatedAt": 1672498800000,
                  "id": 1746,
                  "hash": "9d062cb4-faf0-4e23-ad91-05ae0ce85f8f",
                  "size": 11666,
                  "type": "image/png",
                  "filename": "space-logo.png",
                  "extra": null,
                  "space": 1,
                  "user": 1,
                  "project": 1
                }
              ],
              "createdAt": 1672498800000,
              "updatedAt": 1672498800000,
              "id": 1746,
              "deletedAt": null,
              "comment": "I think it's good.",
              "space": 1,
              "user": {
                "id": 1746,
                "name": "Joel",
                "fullName": "Joel Blackburn",
                "avatarUrl": "/dummy/avatar6.png",
                "extra": null
              },
              "parent": 8,
              "note": 2,
              "children": []
            }
          ]
        }
      ]
    }
  ]
}

Human-centered, best team!

Repsona is an ideal work management tool for your team
Get started for free