---
title: "Update package (marketplace content item)"
method: PUT
path: "/packages/{packageId}"
tags: ["packages"]
---

# Update package (marketplace content item)

`PUT /packages/{packageId}`

## Request

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

### Use the PUT method to edit a newly posted package (content item).

Note the following:
- This operation applies only to newly created content items that have not been published yet.
- This operation cannot be used to edit new versions of already existing packages (content items).
- Only the creator of a package is able to edit it and thus use this operation.

## Path parameters

- `packageId` integer, required

## Request body

- PackageInput: Package creation request
  - `name` string, required: Package name.
  - `description` string, required: Package description.
  - `studioProVersion` string, required: Studio pro version that package support.
  - `appContentTypeName` string, required: Package content type name.
  - `ownerGroupName` string: Package owner group name.
  - `license` string, required: License name for package.
  - `logoFile` string, required: Base64EncodedContent string of package version logo file.
  - `visibility` string: Package is visible to all or only specific groups.
  - `versionMajor` integer: Package first version major number.
  - `versionMinor` integer: Package first version minor number.
  - `versionPatch` integer: Package first version patch number.
  - `releaseNotes` string, required: Package release note text.
  - `documentation` string: Package documentation text.
  - `screenshotInputs` object[]: Package screenshot file.
    - `base64EncodedContent` string: Base64EncodedContent string of package screenshot file.
    - `fileName` string: Package screenshot file name.
  - `sourceFileInput` object, required: Package source mpk file.
    - `base64EncodedContent` string, required: Base64EncodedContent string of package source mpk file.
    - `fileName` string, required: Package source mpk file name.
  - `appCategories` object[]: Package App Category.
    - `name` string: Package App Category name.

## 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)
