---
title: "Update"
method: PATCH
path: "/landscapes/{landscapeId}/versions/{versionId}/model/connections/{modelConnectionId}"
tags: ["Model Connections"]
---

# Update

`PATCH /landscapes/{landscapeId}/versions/{versionId}/model/connections/{modelConnectionId}`

## Path parameters

- `landscapeId` string, required
- `versionId` string, required
- `modelConnectionId` string, required

## Query parameters

- `updateDiagrams` boolean

## Request body

- ModelConnectionPartial
  - `commit` number
  - `description` string
  - `direction` 'outgoing' | 'bidirectional'
  - `labels` object
  - `links` object
    - `$add` object
    - `$remove` string[]
    - `$replace` object
    - `$update` object
  - `name` string
  - `originId` string — Model object that initiates the connection
  - `status` 'deprecated' | 'future' | 'live' | 'removed'
  - `tagIds` union
    - string[] — Tag IDs assigned to this model
    - object — Update individual tag IDs
      - `$add` string[] — Append tag IDs to the list
      - `$remove` string[] — Remove tag IDs from the list
  - `targetId` string — Model object that receives the message
  - `technologyIds` union
    - string[] — Technology IDs assigned to this model
    - object — Update individual technology IDs
      - `$add` string[] — Append technology IDs to the list
      - `$remove` string[] — Remove technology IDs from the list
  - `viaId` string, nullable — Model object that facilitates the connection, such as a Kafka topic, or RabbitMQ queue

## Response `200`

OK

- object
  - `modelConnection` ModelConnection, required
    - `commit` number, required
    - `description` string
    - `direction` 'outgoing' | 'bidirectional', required
    - `labels` object, required
    - `links` object, required
    - `name` string, required
    - `originId` string, required — Model object that initiates the connection
    - `status` 'deprecated' | 'future' | 'live' | 'removed', required
    - `tagIds` string[], required — Tag IDs assigned to this model
    - `targetId` string, required — Model object that receives the message
    - `technologyIds` string[], required — Technology IDs assigned to this model
    - `viaId` string, nullable, required — Model object that facilitates the connection, such as a Kafka topic, or RabbitMQ queue
    - `handleId` string, 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
    - `diagrams` object, required
    - `flows` object, required
    - `id` string, required
    - `landscapeId` string, required
    - `latestEntityId` string
    - `linked` boolean, required
    - `updatedAt` string, date-time, required
    - `updatedBy` 'user' | 'api-key' | 'notification-key' | 'service', required
    - `updatedById` string, required
    - `version` number, required
    - `versionId` string, required

## 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/versions/e9ab2ff0f435/schema)
