---
title: "Change owner user and group of project"
method: PUT
path: "/projects/{projectId}/owner"
tags: ["projects"]
---

# Change owner user and group of project

`PUT /projects/{projectId}/owner`

## Request

- Base URL: `https://pmp-demo.privateplatform.mendix.com/projectservice/v1`
- URL: `https://pmp-demo.privateplatform.mendix.com/projectservice/v1/projects/{projectId}/owner`
- Auth: API key in header `Authorization`

Change owner user and group of project

## Path parameters

- `projectId` string, required

## Request body

- OwnerInput: Project owner change request
  - `userName` string: Project owner user name.
  - `groupName` string: Project owner group name

## Response `200`

Project

- object
  - `id` string
  - `name` string
  - `description` string
  - `ownerUserName` string
  - `ownerGroupName` string
  - `memberCount` integer
  - `repositoryId` string
  - `repositoryName` string
  - `repositoryURL` string
  - `isActive` boolean
  - `createdDate` string

## Other responses

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

---

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