---
title: "Creates a link"
method: POST
path: "/api/v1/links"
tags: ["Links"]
---

# Creates a link

`POST /api/v1/links`

## Request body

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

## Response `201`

Created

## Other responses

- `401` — Unauthorized
- `500` — Internal Server Error

---

[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)
