---
title: "Set a plugin's workspace policy [write, owner or admin]"
method: PUT
path: "/plugins/{name}/policy"
---

# Set a plugin's workspace policy \[write, owner or admin\]

`PUT /plugins/{name}/policy`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/plugins/{name}/policy`
- Auth: HTTP bearer

For a bare name or bundle:<name>: recommended, default (installs it now, from source or the plugin's recorded source), blocked (cannot be installed or switched on; an installed one is switched off), or null to clear, exactly as before. Any other Plugin id is recorded under that id: blocked refuses adding it (403 plugin_blocked) and takes a tool or a skill out of the workspace now; default adds a tool or a skill now (422 policy_unsupported for other kinds); recommended is recorded.

## Path parameters

- `name` string, required

## Request body

- object
  - `policy` 'recommended' | 'default' | 'blocked' | 'null', nullable, required
  - `source` string

## Response `200`

OK

- object
  - `name` string
  - `policy` string, nullable
  - `source` string, nullable

## Other responses

- `default`: Error — { error: { code, message, request_id } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/plugins/:name/policy/put.md)

---

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