POST
/
landscapes
/
{landscapeId}
/
versions
/
{versionId}
/
comments
curl --request POST \
  --url https://api.icepanel.io/v1/landscapes/{landscapeId}/versions/{versionId}/comments \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "body": {
    "content": "<string>",
    "showContentPreview": true,
    "status": "open",
    "type": "question"
  },
  "commit": 123,
  "mentionedUserIds": [
    "<string>"
  ],
  "handleId": "<string>"
}'
{
  "comment": {
    "body": {
      "content": "<string>",
      "showContentPreview": true,
      "status": "open",
      "type": "question"
    },
    "commit": 123,
    "mentionedUserIds": [
      "<string>"
    ],
    "handleId": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "createdBy": "user",
    "createdById": "<string>",
    "deletedAt": "2023-11-07T05:31:56Z",
    "deletedBy": "user",
    "deletedById": "<string>",
    "diagrams": {},
    "id": "<string>",
    "landscapeId": "<string>",
    "replyCount": 123,
    "updatedAt": "2023-11-07T05:31:56Z",
    "updatedBy": "user",
    "updatedById": "<string>",
    "version": 123,
    "versionId": "<string>"
  }
}

Headers

Authorization
string
required

Path Parameters

landscapeId
string
required
versionId
string
required

Body

application/json
body
object
required
commit
number
mentionedUserIds
string[]
handleId
string

Response

200
application/json
OK
comment
object
required