---
title: "Bulk-replace schematic + pid grounding"
method: PUT
path: "/api/v0/components/{component_id}/schematic"
tags: ["Components"]
---

# Bulk-replace schematic + pid grounding

`PUT /api/v0/components/{component_id}/schematic`

Overwrites grounding_data atomically with a versioned codec dict. Accepts either a v0 envelope (`{version: 'v0', schematic, pid}`), a v1 envelope (`{version: 'v1', network, annotations, ...}`), or a bare legacy `{schematic, pid}` body (treated as unversioned v0 for backward compatibility with pre-codec frontend builds). The version is sniffed off the body — no separate endpoint per format.

## Path parameters

- `component_id` string, required

## Query parameters

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

## Request body

- object

## Response `204`

Successful Response

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