---
title: "Update plugins"
method: POST
path: "/api/plugin/update"
tags: ["plugin"]
---

# Update plugins

`POST /api/plugin/update`

## Request

- Base URL: `https://opencode.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://opencode.ai/api/plugin/update`
- Auth: none required

Update package plugins concurrently and notify active locations to reload them. Responds once every update has finished; fails when any update fails.

## Query parameters

- `location` object, nullable
  - `directory` string, nullable

## Request body

- object
  - `targets` string[], required

## Response `204`

<No Content>

## Other responses

- `400`: InvalidRequestError
- `401`: UnauthorizedError
- `404`: LocationNotFoundError
- `503`: ServiceUnavailableError

---

[API](https://skmtc.dev/kaaass/apis/opencode.md) - [All operations](https://skmtc.dev/kaaass/apis/opencode/llms.txt) - [OpenAPI document](https://skmtc.dev/kaaass/apis/opencode/revisions/4e083d954707?raw)
