---
title: "Attach your workspace's plugs to a harness"
method: POST
path: "/v1/harnesses/{hid}/servers/plugs"
---

# Attach your workspace's plugs to a harness

`POST /v1/harnesses/{hid}/servers/plugs`

## Request

- Base URL: `https://api.harnessrouter.ai`
- URL: `https://api.harnessrouter.ai/v1/harnesses/{hid}/servers/plugs`
- Auth: none declared

## Path parameters

- `hid` string, required

## Request body

- PlugsBody
  - `plugs` string[], required
  - `tools` object, nullable
  - `apps` string[], nullable
  - `lazy` boolean, nullable
  - `pinned` string[], nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

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