---
title: "restore marketplace"
method: POST
path: "/v1/marketplaces/{marketplaceId}/restore"
tags: ["Marketplaces"]
---

# restore marketplace

`POST /v1/marketplaces/{marketplaceId}/restore`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/marketplaces/{marketplaceId}/restore`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

restore a marketplace without deleting its plugins.

## Path parameters

- `marketplaceId` string, typeid, required

## Response `200`

Marketplace lifecycle updated successfully.

- PluginArchMarketplaceMutationResponse
  - `ok` true, required
  - `item` PluginArchMarketplace, required
    - `externalKey` string, nullable, required
    - `id` string, typeid, required: Den TypeID with 'mkt_' 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
    - `logoUrl` 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
    - `pluginCount` integer

## Other responses

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

## Changes

- **2026-10-01** `df3754993784`: 1 info
  - added the optional property `message` to the response with the `400` status
- **2026-09-11** `bb8ff73e4ad3`: 2 info
  - the endpoint scheme security `bearerAuth` was added to the API
  - the endpoint scheme security `denApiKey` was added to the API
- **2026-09-05** `cb34559d4b4d`: 1 info
  - added the required property `item/externalKey` to the response with the `200` status
- **2026-09-04** `d3984673ccd1`: 1 info
  - added the optional property `capability` to the response with the `400` status
- **2026-08-20** `93df40e2efd5`: 4 info
  - removed the pattern `^mkt_.*` from the `path` request parameter `marketplaceId`
  - the `item/createdByOrgMembershipId` response's property pattern `^om_.*` was removed for the status `200`
  - the `item/id` response's property pattern `^mkt_.*` was removed for the status `200`
  - the `item/organizationId` response's property pattern `^org_.*` was removed for the status `200`

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/marketplaces/:marketplaceId/restore/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.dev/openworklabs/apis/den-api/revisions/e6eb4e5ce8a3?raw)
