---
title: "archive plugin"
method: POST
path: "/v1/plugins/{pluginId}/archive"
tags: ["Plugins"]
---

# archive plugin

`POST /v1/plugins/{pluginId}/archive`

archive a plugin without touching its historical memberships.

## Path parameters

- `pluginId` string, typeid, required

## Response `200`

Plugin lifecycle updated successfully.

- PluginArchPluginMutationResponse
  - `ok` true, required
  - `item` PluginArchPlugin, required
    - `id` string, typeid, required — Den TypeID with 'plg_' prefix and a 26-character base32 suffix.
    - `organizationId` string, typeid, required — Den TypeID with 'org_' prefix and a 26-character base32 suffix.
    - `name` string, required
    - `description` string, nullable, required
    - `sourceRepositoryUrl` string, nullable, required
    - `sourceFormat` 'agent-plugin' | 'openwork-builtin' | 'openwork-extension-manifest' | 'claude-plugin' | 'opencode-plugin' | 'mcp-directory' | 'manual', nullable, required
    - `sourceSchemaVersion` string, nullable, required
    - `status` 'active' | 'inactive' | 'deleted' | 'archived', required
    - `createdByOrgMembershipId` string, typeid, required — Den TypeID with 'om_' prefix and a 26-character base32 suffix.
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `deletedAt` string, date-time, nullable, required
    - `memberCount` integer
    - `marketplaces` object[]
      - `id` string, typeid, required — Den TypeID with 'mkt_' prefix and a 26-character base32 suffix.
      - `name` string, required
    - `extension` PluginArchExtensionProjection
      - `id` string, typeid, required — Den TypeID with 'plg_' prefix and a 26-character base32 suffix.
      - `name` string, required
      - `description` string, nullable, required
      - `sourceFormat` 'agent-plugin' | 'openwork-builtin' | 'openwork-extension-manifest' | 'claude-plugin' | 'opencode-plugin' | 'mcp-directory' | 'manual', required
      - `manifest` OpenWorkExtensionManifest, required
        - `schemaVersion` 1, required
        - `id` string, required
        - `name` string, required
        - `description` string, required
        - `source` object, required
          - `format` 'agent-plugin' | 'openwork-builtin' | 'openwork-extension-manifest' | 'claude-plugin' | 'opencode-plugin' | 'mcp-directory' | 'manual', required
          - `trusted` boolean, required
          - `origin` 'builtin' | 'den' | 'workspace' | 'local'
          - `reference` string
        - `resources` object[], required
        - `contributions` object[]
        - `setup` object
        - `lifecycle` object

## Other responses

- `400` — The plugin lifecycle path parameters were invalid.
- `401` — The caller must be signed in to manage plugins.
- `403` — The caller lacks permission to manage this plugin.
- `404` — The plugin could not be found.

## Changes

- **2026-08-29** `fcbb34aa1702` — 2 warning, 2 info
  - added the new `agent-plugin` enum value to the `item/extension/anyOf[#/components/schemas/PluginArchExtensionProjection]/manifest/anyOf[#/components/schemas/OpenWorkExtensionManifest]/source/format` response property for the response status `200`
  - added the new `agent-plugin` enum value to the `item/extension/anyOf[#/components/schemas/PluginArchExtensionProjection]/sourceFormat` response property for the response status `200`
  - added the required property `item/sourceFormat` to the response with the `200` status
  - added the required property `item/sourceSchemaVersion` to the response with the `200` status
- **2026-08-20** `93df40e2efd5` — 6 info
  - removed the pattern `^plg_.*` from the `path` request parameter `pluginId`
  - the `item/createdByOrgMembershipId` response's property pattern `^om_.*` was removed for the status `200`
  - the `item/extension/anyOf[#/components/schemas/PluginArchExtensionProjection]/id` response's property pattern `^plg_.*` was removed for the status `200`
  - the `item/id` response's property pattern `^plg_.*` was removed for the status `200`
  - …2 more

[Change history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/plugins/:pluginId/archive/post.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) · [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openworklabs/den-api/revisions/fcbb34aa1702/schema)
