---
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/v2`
- URL: `https://pmp-demo.privateplatform.mendix.com/projectservice/v2/projects/{projectId}/owner`
- Auth: one of:
  - HTTP basic
  - API key in header `Authorization`

Change owner user and group of project

## Path parameters

- `projectId` string, required

## Request body

- OwnerChangeRequest: Project owner change request
  - `userId` string: Project owner user id.
  - `groupId` string: Project owner group id

## Response `200`

Project

- Project: Project
  - `id` string: Project id.
  - `name` string: Project name.
  - `description` string: Project description.
  - `ownerUserName` string: Project owner's username.
  - `ownerGroupName` string: Project owner's group name.
  - `memberCount` integer: Number of members in the project.
  - `repositoryId` string: Repository id.
  - `repositoryName` string: Repository name.
  - `repositoryURL` string: Repository URL.
  - `isActive` boolean: Indicates if the project is active.
  - `createdDate` string: Date when the project was created.

## 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-v2.md) - [All operations](https://skmtc.dev/mendix/apis/project-service-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/mendix/apis/project-service-v2/revisions/85d493a478d2?raw)
