Search + K

Command Palette

Search for a command to run...

Sign In

Modifies a user's role in the organization.

POST /organization/users/{user_id}
Copy endpoint
https://api.openai.com/v1

Parameters

path Path Parameters

Name Type
user_id required

The ID of the user.

string

Request Body

application/json required

The new user role to modify. This must be one of owner or member.

interface UserRoleUpdateRequest {
role: "owner" | "reader";
}

Responses

200 application/json

User role updated successfully.

interface User {
object: "organization.user";
id: string;
name: string;
email: string;
role: "owner" | "reader";
added_at: number;
}