---
title: "Modify project user"
method: POST
path: "/organization/projects/{project_id}/users/{user_id}"
tags: ["Projects"]
---

# Modify project user

`POST /organization/projects/{project_id}/users/{user_id}`

Modifies a user's role in the project.

## Path parameters

- `project_id` string, required
- `user_id` string, required

## Request body

- ProjectUserUpdateRequest
  - `role` string, nullable — `owner` or `member`

## Response `200`

Project user's role updated successfully.

- ProjectUser — Represents an individual user in a project.
  - `object` 'organization.project.user', required — The object type, which is always `organization.project.user`
  - `id` string, required — The identifier, which can be referenced in API endpoints
  - `name` string, nullable — The name of the user
  - `email` string, nullable — The email address of the user
  - `role` string, required — `owner` or `member`
  - `added_at` integer, required — The Unix timestamp (in seconds) of when the project was added.

## Other responses

- `400` — Error response for various conditions.

## Changes

- **2026-05-01** `918e83711c91` — 6 breaking, 4 info
  - removed the enum value `member` of the request property `role`
  - removed the enum value `owner` of the request property `role`
  - the response property `email` became optional for the status `200`
  - the response property `name` became optional for the status `200`
  - …6 more
- **2026-04-28** `fa32d6e7d961` — 1 info
  - the endpoint scheme security `AdminApiKeyAuth` was added to the API

[Change history](https://skmtc.dev/openai/apis/openai-api/changes/organization/projects/:project_id/users/:user_id/post.md)

---

[API](https://skmtc.dev/openai/apis/openai-api.md) · [All operations](https://skmtc.dev/openai/apis/openai-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openai/openai-api/revisions/dcd35773a322/schema)
