Adds a user to the project. Users must already be members of the organization to be added to a project.
POST
/organization/projects/{project_id}/users
curl \
--request POST 'https://api.openai.com/v1/organization/projects/{project_id}/users' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"user_id":"string","role":"owner"}'
Request examples
{
"user_id": "string",
"role": "owner"
}
Response examples (200)
{
"object": "organization.project.user",
"id": "string",
"name": "string",
"email": "string",
"role": "owner",
"added_at": 42
}
Response examples (400)
{
"error": {
"code": "string",
"message": "string",
"param": "string",
"type": "string"
}
}