Sample - OpenAI API
POST/organization/projects/{project_id}/users

Create project user

Adds a user to the project. Users must already be members of the organization to be added to a project.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 parameter · 3 body fields
project_idstringrequired
The ID of the project.

The project user create request payload.

user_idstringoptional
The ID of the user.
emailstringoptional
Email of the user to add.
rolestringrequired
`owner` or `member`

2 status codes
200User added to project successfully.
objectstringrequired
The object type, which is always `organization.project.user`
Allowed:organization.project.user
idstringrequired
The identifier, which can be referenced in API endpoints
namestringoptional
The name of the user
emailstringoptional
The email address of the user
rolestringrequired
`owner` or `member`
added_atintegerrequired
The Unix timestamp (in seconds) of when the project was added.
400Error response for various conditions.
errorobjectrequired

Error handling

A 400 is returned: Error response for various conditions.