curl --request POST \
--url https://api.openai.com/v1/organization/projects/{project_id}/users/{user_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"role": "owner"
}'
{
"object": "organization.project.user",
"id": "<string>",
"name": "<string>",
"email": "<string>",
"role": "owner",
"added_at": 123
}
Modifies a user’s role in the project.
curl --request POST \
--url https://api.openai.com/v1/organization/projects/{project_id}/users/{user_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"role": "owner"
}'
{
"object": "organization.project.user",
"id": "<string>",
"name": "<string>",
"email": "<string>",
"role": "owner",
"added_at": 123
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The ID of the project.
The ID of the user.
The project user update request payload.
The body is of type object
.
Project user's role updated successfully.
Represents an individual user in a project.
Was this page helpful?