---
title: "Update a link"
method: PUT
path: "/api/v1/links/{id}"
tags: ["Links"]
---

# Update a link

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

## Path parameters

- `id` integer, required

## Request body

- UpdateLink
  - `token` string, required
  - `item` object
    - `source_id` integer — The ID of the source item
    - `source_type` string — Specifies the class name of the source item, such as Biocollections::Plasmid
    - `target_id` integer — The ID of the target item
    - `target_type` string — Specifies the class name of the target item, such as Biocollections::Antibody
    - `source_uuid` string — The UUID of the source item
    - `target_uuid` string — The UUID of the target item

## Response `200`

OK

## Other responses

- `401` — Unauthorized
- `422` — Unprocessable Entity

---

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