---
title: "Create a schematic association (link annotation to entity)"
method: POST
path: "/api/v0/components/{component_id}/schematic/associations"
tags: ["Components"]
---

# Create a schematic association (link annotation to entity)

`POST /api/v0/components/{component_id}/schematic/associations`

## Path parameters

- `component_id` string, required

## Query parameters

- `vc_id` string, required — Public ID of the target visual component

## Request body

- CreateAssociationRequest
  - `text_id` string, required
  - `target_id` string, required
  - `target_type` 'node' | 'segment' | 'port' | 'junction' | 'terminal', required

## Response `200`

Successful Response

- Association — A binding from an annotation to a schematic entity.
  - `text_id` string, required
  - `target_id` string, required
  - `target_type` 'node' | 'segment' | 'port' | 'junction' | 'terminal', required
  - `content` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/outerport/apis/outerport-api.md) · [All operations](https://skmtc.dev/outerport/apis/outerport-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/outerport/outerport-api/revisions/f565b46daaea/schema)
