---
title: "Modifies a user's role in the project."
method: POST
path: "/organization/projects/{project_id}/users/{user_id}"
tags: ["Projects"]
---

# Modifies a user's role in the project.

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

## 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-13** `74cbcf73838f` — 8 breaking, 5 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`
  - …9 more
- **2024-10-17** `cc9f99ba40bc` — 2 breaking
  - added the new path request parameter `project_id`
  - added the new path request parameter `user_id`
- **2024-08-06** `8eca3b09b705` — 1 info
  - endpoint added

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

---

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