Create project user
POSThttps:/api.openai.com/v1/organization/projects/{project_id}/users
Adds a user to the project. Users must already be members of the organization to be added to a project.
Path parameters
project_id
string
Required
The ID of the project.
Request body
user_id
string
Required
The ID of the user.role
string
Required
owner
ormember
owner
string
member
string
Response
The created ProjectUser object.
Example request
1 curl -X POST https://api.openai.com/v1/organization/projects/proj_abc/users \2 -H "Authorization: Bearer $OPENAI_ADMIN_KEY" \3 -H "Content-Type: application/json" \4 -d '{5 "user_id": "user_abc",6 "role": "member"7 }'
Example response
1 {2 "object": "organization.project.user",3 "id": "user_abc",4 "email": "user@example.com",5 "role": "owner",6 "added_at": 17114715337 }
Built with