---
title: "Request to publish/approve/decline/retire/activate package"
method: PUT
path: "/packages/{packageId}/request"
tags: ["packages"]
---

# Request to publish/approve/decline/retire/activate package

`PUT /packages/{packageId}/request`

## Request

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

### Use this PUT method to publish/approve/decline/retire/activate a package (marketplace content item) that was created using the POST /package operation

Note the following:
- To publish package content will result in submitting the content for approval.
- Admin or owner user of package are able to publish/retire/activate package.
- Only Admin is able to approve/decline package for publishing.

## Path parameters

- `packageId` integer, required

## Query parameters

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

## Response `200`

Package response

- object
  - `id` integer
  - `name` string
  - `appContentTypeName` string
  - `ownerUserName` string
  - `ownerGroupName` string
  - `status` string
  - `visibility` string
  - `downloads` integer
  - `appCategories` object[]: Package App Category.
    - `name` string: Package App Category name.
  - `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)
