---
title: "Update a Dependency"
method: PUT
path: "/api/v1/dependencies/{id}"
tags: ["Dependencies"]
---

# Update a Dependency

`PUT /api/v1/dependencies/{id}`

## Path parameters

- `id` string, uuid, required

## Request body

- Dependency
  - `color` 'Pink' | 'Rose' | 'Red' | 'Amber' | 'Orange' | 'Green' | 'Emerald' | 'Teal' | 'Cyan' | 'Blue' | 'Indigo' | 'Purple' | 'Fuchsia' | 'Violet' | 'Sky' | 'Gray' | 'Lime' | 'Yellow', required
  - `dependency_type` 'RequestPath' | 'HubAndSpoke', required
  - `description` string, nullable — Free-text notes about the dependency.
  - `edge_style` 'Straight' | 'SmoothStep' | 'Bezier', required
  - `members` union, required — The members of a dependency: either service-level or binding-level. Bindings are all-or-nothing: either every position has a binding (full L3 detail) or none do (Application-level only).
    - object — Application-level only. Ordered list of service IDs.
      - `service_ids` string[], required — The services in the chain, in order.
      - `type` 'Services', required
    - object — Full L3 detail. Ordered list of binding IDs (one per service in the chain).
      - `binding_ids` string[], required — The bindings in the chain, in order — one per service.
      - `type` 'Bindings', required
  - `name` string, required — Human-facing name for this dependency.
  - `network_id` string, uuid, required — The network this entity belongs to.
  - `source` union
    - object
      - `type` 'Manual', required
    - object
      - `type` 'System', required
    - object
      - `type` 'Discovery', required
    - object
      - `details` MatchDetails, required
        - `confidence` 'NotApplicable' | 'Low' | 'Medium' | 'High' | 'Certain', required
        - `reason` union, required — Match reason - either a simple reason string or a container with nested reasons
          - object
            - `data` string, required — Why the service was matched.
            - `type` 'reason', required
          - object
            - `data` unknown[], required — Tuple of [name: string, children: MatchReason[]]
              - …
            - `type` 'container', required
      - `type` 'DiscoveryWithMatch', required
    - object
      - `type` 'Unknown', required
  - `tags` string[], required — Tags assigned to this entity.
  - `created_at` string, date-time, required — When this record was first created.
  - `id` string, uuid, required — Server-assigned unique identifier.
  - `lineage_id` string, uuid, nullable — Stable identifier shared by every revision of the same entity across its history.
  - `updated_at` string, date-time, required — When this record was last modified.
  - `valid_from` string, date-time — Start of the interval this revision was current for (SCD2 history).
  - `valid_to` string, date-time, nullable — End of the interval this revision was current for. `null` while it is the live revision.

## Response `200`

Dependency updated successfully

- ApiResponseDependency
  - `data` object — The result payload. Omitted on failure.
    - `color` 'Pink' | 'Rose' | 'Red' | 'Amber' | 'Orange' | 'Green' | 'Emerald' | 'Teal' | 'Cyan' | 'Blue' | 'Indigo' | 'Purple' | 'Fuchsia' | 'Violet' | 'Sky' | 'Gray' | 'Lime' | 'Yellow', required
    - `dependency_type` 'RequestPath' | 'HubAndSpoke', required
    - `description` string, nullable — Free-text notes about the dependency.
    - `edge_style` 'Straight' | 'SmoothStep' | 'Bezier', required
    - `members` union, required — The members of a dependency: either service-level or binding-level. Bindings are all-or-nothing: either every position has a binding (full L3 detail) or none do (Application-level only).
      - object — Application-level only. Ordered list of service IDs.
        - `service_ids` string[], required — The services in the chain, in order.
        - `type` 'Services', required
      - object — Full L3 detail. Ordered list of binding IDs (one per service in the chain).
        - `binding_ids` string[], required — The bindings in the chain, in order — one per service.
        - `type` 'Bindings', required
    - `name` string, required — Human-facing name for this dependency.
    - `network_id` string, uuid, required — The network this entity belongs to.
    - `source` union
      - object
        - `type` 'Manual', required
      - object
        - `type` 'System', required
      - object
        - `type` 'Discovery', required
      - object
        - `details` MatchDetails, required
          - `confidence` 'NotApplicable' | 'Low' | 'Medium' | 'High' | 'Certain', required
          - `reason` union, required — Match reason - either a simple reason string or a container with nested reasons
            - object
              - …
            - object
              - …
        - `type` 'DiscoveryWithMatch', required
      - object
        - `type` 'Unknown', required
    - `tags` string[], required — Tags assigned to this entity.
    - `created_at` string, date-time, required — When this record was first created.
    - `id` string, uuid, required — Server-assigned unique identifier.
    - `lineage_id` string, uuid, nullable — Stable identifier shared by every revision of the same entity across its history.
    - `updated_at` string, date-time, required — When this record was last modified.
    - `valid_from` string, date-time — Start of the interval this revision was current for (SCD2 history).
    - `valid_to` string, date-time, nullable — End of the interval this revision was current for. `null` while it is the live revision.
  - `error` string, nullable — Human-readable failure message. Omitted on success.
  - `meta` ApiMeta, required — API metadata included in all responses
    - `api_version` integer, required — API version (integer, increments on breaking changes)
    - `server_version` string, required — Server version (semver)
  - `success` boolean, required — `true` when the request succeeded. `false` responses carry `error` instead of `data`.

## Other responses

- `400` — Invalid request
- `404` — Dependency not found

---

[API](https://skmtc.net/scanopy/apis/scanopy-api.md) · [All operations](https://skmtc.net/scanopy/apis/scanopy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/scanopy/scanopy-api/versions/28e466341947/schema)
