POST
/
organization
/
users
/
{user_id}
curl --request POST \
  --url https://api.openai.com/v1/organization/users/{user_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "role": "owner"
}'
{
  "object": "organization.user",
  "id": "<string>",
  "name": "<string>",
  "email": "<string>",
  "role": "owner",
  "added_at": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
string
required

The ID of the user.

Body

application/json

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

The body is of type object.

Response

200 - application/json

User role updated successfully.

Represents an individual user within an organization.