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

# restore plugin

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

restore 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
    - `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` '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` '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.

---

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