PATCH
/
landscapes
/
{landscapeId}
/
versions
/
{versionId}
/
diagrams
/
{diagramId}
/
content
curl --request PATCH \
  --url https://api.icepanel.io/v1/landscapes/{landscapeId}/versions/{versionId}/diagrams/{diagramId}/content \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "comments": {
    "$add": {},
    "$remove": [
      "<string>"
    ],
    "$replace": {},
    "$update": {}
  },
  "commit": 123,
  "connections": {
    "$add": {},
    "$remove": [
      "<string>"
    ],
    "$replace": {},
    "$update": {}
  },
  "objects": {
    "$add": {},
    "$remove": [
      "<string>"
    ],
    "$replace": {},
    "$update": {}
  },
  "tasksProposed": {
    "$append": [
      {
        "tasks": [
          "<any>"
        ],
        "type": "batch"
      }
    ],
    "$replace": [
      {
        "tasks": [
          "<any>"
        ],
        "type": "batch"
      }
    ]
  }
}'
{
  "diagramContent": {
    "comments": {},
    "commit": 123,
    "connections": {},
    "objects": {},
    "tasksProposed": [
      {
        "proposedAt": "2023-11-07T05:31:56Z",
        "proposedBy": "user",
        "proposedById": "<string>",
        "task": {
          "tasks": [
            "<any>"
          ],
          "type": "batch"
        }
      }
    ],
    "createdAt": "2023-11-07T05:31:56Z",
    "createdBy": "user",
    "createdById": "<string>",
    "deletedAt": "2023-11-07T05:31:56Z",
    "deletedBy": "user",
    "deletedById": "<string>",
    "groupId": "<string>",
    "handleId": "<string>",
    "id": "<string>",
    "landscapeId": "<string>",
    "modelId": "<string>",
    "name": "<string>",
    "status": "current",
    "type": "context-diagram",
    "updatedAt": "2023-11-07T05:31:56Z",
    "updatedBy": "user",
    "updatedById": "<string>",
    "version": 123,
    "versionId": "<string>",
    "viewedAt": "2023-11-07T05:31:56Z",
    "viewedBy": "user",
    "viewedById": "<string>"
  }
}

Headers

Authorization
string
required

Path Parameters

landscapeId
string
required
versionId
string
required
diagramId
string
required

Query Parameters

updateViewedAt
boolean

Body

application/json
comments
object
commit
number
connections
object
objects
object
tasksProposed
object

Response

200
application/json
OK
diagramContent
object
required