---
title: "Update"
method: PATCH
path: "/landscapes/{landscapeId}/versions/{versionId}/diagrams/{diagramId}/content"
tags: ["Diagram Content"]
---

# Update

`PATCH /landscapes/{landscapeId}/versions/{versionId}/diagrams/{diagramId}/content`

## Path parameters

- `landscapeId` string, required
- `versionId` string, required
- `diagramId` string, required

## Query parameters

- `updateViewedAt` boolean

## Request body

- DiagramContentPartial
  - `comments` object — Operations to apply to the comments on the diagram
    - `$add` object — Add new comments to the diagram, keyed by comment id
    - `$remove` string[] — Remove comments from the diagram by id
    - `$replace` object — Replace all comments on the diagram, keyed by comment id
    - `$update` object — Update existing comments on the diagram, keyed by comment id
  - `commit` number — The commit number of the diagram content, incremented on each change
  - `connections` object — Operations to apply to the connections on the diagram
    - `$add` object — Add new connections to the diagram, keyed by connection id
    - `$remove` string[] — Remove connections from the diagram by id
    - `$replace` object — Replace all connections on the diagram, keyed by connection id
    - `$update` object — Update existing connections on the diagram, keyed by connection id
  - `objects` object — Operations to apply to the objects on the diagram
    - `$add` object — Add new objects to the diagram, keyed by object id
    - `$remove` string[] — Remove objects from the diagram by id
    - `$replace` object — Replace all objects on the diagram, keyed by object id
    - `$update` object — Update existing objects on the diagram, keyed by object id

## Response `200`

OK

- object
  - `diagramContent` DiagramContent, required
    - `comments` object, required — The comments on the diagram, keyed by comment id
    - `commit` number, required — The commit number of the diagram content, incremented on each change
    - `connections` object, required
    - `objects` object, required
    - `createdAt` string, date-time, required
    - `createdBy` 'user' | 'api-key' | 'notification-key' | 'service', required
    - `createdById` string, required
    - `deletedAt` string, date-time
    - `deletedBy` 'user' | 'api-key' | 'notification-key' | 'service'
    - `deletedById` string
    - `groupId` string, nullable, required — The id of the diagram group the diagram belongs to, null when not in a group
    - `handleId` string, required — A short id of the diagram stable across landscape versions
    - `id` string, required
    - `landscapeId` string, required
    - `latestEntityId` string
    - `modelId` string, required — The id of the model object the diagram belongs to
    - `name` string, required
    - `status` 'current', required
    - `type` 'app-diagram' | 'component-diagram' | 'context-diagram', required
    - `updatedAt` string, date-time, required
    - `updatedBy` 'user' | 'api-key' | 'notification-key' | 'service', required
    - `updatedById` string, required
    - `version` number, required — The version number of the diagram content, incremented on each update
    - `versionId` string, required
    - `viewedAt` string, date-time
    - `viewedBy` 'user' | 'api-key' | 'notification-key' | 'service'
    - `viewedById` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `422` — Unprocessable Entity
- `429` — Resource Exhausted
- `500` — Internal Server
- `503` — Service Unavailable

---

[API](https://skmtc.net/icepanel/apis/icepanel-api.md) · [All operations](https://skmtc.net/icepanel/apis/icepanel-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/icepanel/icepanel-api/revisions/27e82759be89/schema)
