---
title: "Create a P&ID arrow"
method: POST
path: "/api/v0/components/{component_id}/schematic/arrows"
tags: ["Components"]
---

# Create a P&ID arrow

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

## Path parameters

- `component_id` string, required

## Query parameters

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

## Request body

- CreateArrowRequest
  - `id` string, uuid4, required
  - `bbox` BoundingBox, required
    - `x0` integer, required
    - `y0` integer, required
    - `x1` integer, required
    - `y1` integer, required
    - `dpi` integer
    - `class_name` string, nullable
    - `text` string, nullable
    - `confidence` number, nullable
  - `confidence` number

## Response `200`

Successful Response

- Arrow — A first-class arrow entity in a schematic. Bbox-only entity that lives in `pid.arrows`. Arrows are flow-direction hints for the inference algorithm — they participate in flow.py's geometry-driven assignment, not in `schematic.nodes` topology.
  - `id` string, required
  - `bbox` BoundingBox, required
    - `x0` integer, required
    - `y0` integer, required
    - `x1` integer, required
    - `y1` integer, required
    - `dpi` integer
    - `class_name` string, nullable
    - `text` string, nullable
    - `confidence` number, nullable
  - `confidence` number, required

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