curl --request POST \
--url https://api.openai.com/v1/organization/projects/{project_id}/users \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"user_id": "<string>",
"role": "owner"
}
'{
"object": "organization.project.user",
"id": "<string>",
"name": "<string>",
"email": "<string>",
"role": "owner",
"added_at": 123
}Adds a user to the project. Users must already be members of the organization to be added to a project.
curl --request POST \
--url https://api.openai.com/v1/organization/projects/{project_id}/users \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"user_id": "<string>",
"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 project user create request payload.
User added to project successfully.
Represents an individual user in a project.
The object type, which is always organization.project.user
organization.project.user The identifier, which can be referenced in API endpoints
The name of the user
The email address of the user
owner or member
owner, member The Unix timestamp (in seconds) of when the project was added.
Was this page helpful?