---
title: "Link a binding node to an existing file."
method: POST
path: "/api/binding/link"
tags: ["Bindings"]
---

# Link a binding node to an existing file.

`POST /api/binding/link`

## Request

- Base URL: `https://passivelogic.com` (the document declares no server; this is the origin it was published from)
- URL: `https://passivelogic.com/api/binding/link`
- Auth: one of:
  - API key in header `X-PL-AUTH`
  - API key in header `Authorization: PL-API-KEY`
  - API key in header `PL-API-KEY`
  - HTTP basic
- TypeScript: <https://skmtc.dev/passivelogic/apis/passivelogic-http-api/docs/api/binding/link/post.ts> (a function with typed inputs; its response is checked against the schema)

Associates an existing `Binding` node with an already-uploaded file without re-uploading the file data. The user must have write access to the target file, and linking files across AuthGroups is not allowed.

## Request body

- LinkFileData: Data required to link a binding node to an existing binding file.
  - `sourceID` string, uuid, required: UUID of a quantum binding node already connected to the desired image file.
  - `targetID` string, uuid, required: UUID of the quantum binding node to update.

## Response `200`

OK

- BindingUploadResponse: Binding response definition
  - `url` string, nullable
  - `message` string, required: Informative message relating to binding upload. Updated binding url with cache bust.

---

[API](https://skmtc.dev/passivelogic/apis/passivelogic-http-api.md) - [All operations](https://skmtc.dev/passivelogic/apis/passivelogic-http-api/llms.txt) - [OpenAPI document](https://skmtc.dev/passivelogic/apis/passivelogic-http-api/revisions/28fce63bcdbb?raw)
