---
title: "Request to publish/retire/activate a version of package"
method: PUT
path: "/versions/{versionId}/request"
tags: ["versions"]
---

# Request to publish/retire/activate a version of package

`PUT /versions/{versionId}/request`

## Request

- Base URL: `https://pmp-demo.privateplatform.mendix.com/marketplaceservice/v1`
- URL: `https://pmp-demo.privateplatform.mendix.com/marketplaceservice/v1/versions/{versionId}/request`
- Auth: one of:
  - HTTP basic
  - API key in header `Authorization`

### Use this PUT method to publish/retire/activate a version of an existing content item that was created using the POST /version operation

Note:
- Admin and owner of package can publish/retire/activate version of package.

## Path parameters

- `versionId` string, required

## Query parameters

- `type` 'Publish' | 'Retire' | 'Activate'

## Response `200`

Package version

- object
  - `id` string
  - `name` string
  - `description` string
  - `versionNum` string
  - `versionMajor` integer
  - `versionMinor` integer
  - `versionPatch` integer
  - `supportedStudioPro` string
  - `defaultVersion` boolean
  - `versionStatus` string
  - `logoUrl` string
  - `appViewUrl` string
  - `appDownloadUrl` string
  - `fileName` string
  - `releaseNotes` string
  - `documentation` string
  - `license` string
  - `supportLevel` string
  - `organisationName` string

## Other responses

- `400`: Invalid input parameters
- `401`: Authentication information missing or invalid
- `403`: No permission for this operation
- `404`: Resource not found

---

[API](https://skmtc.dev/mendix/apis/marketplace-service.md) - [All operations](https://skmtc.dev/mendix/apis/marketplace-service/llms.txt) - [OpenAPI document](https://skmtc.dev/mendix/apis/marketplace-service/revisions/8b2faa028606?raw)
