Skip to main content
PUT
/
landscapes
/
{landscapeId}
/
versions
/
{versionId}
/
comments
/
{commentId}
Upsert
curl --request PUT \
  --url https://api.icepanel.io/v1/landscapes/{landscapeId}/versions/{versionId}/comments/{commentId} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "body": "<any>",
  "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>",
    "latestEntityId": "<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
commentId
string
required

Body

application/json
body
object
required
  • Option 1
  • Option 2
  • Option 3
  • Option 4
  • Option 5
  • Option 6
  • Option 7
  • Option 8
  • Option 9
  • Option 10
  • Option 11
  • Option 12
  • Option 13
  • Option 14
  • Option 15
  • Option 16
  • Option 17
  • Option 18
  • Option 19
  • Option 20
  • Option 21
  • Option 22
  • Option 23
  • Option 24
  • Option 25
  • Option 26
  • Option 27
  • Option 28
  • Option 29
  • Option 30
  • Option 31
  • Option 32
  • Option 33
  • Option 34
  • Option 35
  • Option 36
commit
number
mentionedUserIds
string[]
handleId
string

Response

OK

comment
object
required