---
title: "Change owner of package"
method: PUT
path: "/packages/{packageId}/owner"
tags: ["packages"]
---

# Change owner of package

`PUT /packages/{packageId}/owner`

## Request

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

Change owner user and group of package

## Path parameters

- `packageId` integer, required

## Request body

- OwnerInput: Package owner change request
  - `userName` string: Package owner user name.
  - `groupName` string: Package owner group 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)
