Project user role assignments

Assign project role to user

Changed on

Assigns a project role to a user within a project.

post/projects/{project_id}/users/{user_id}/roles

Request

  • Base URL
    https://api.openai.com/v1
  • URL
    https://api.openai.com/v1/projects/{project_id}/users/{user_id}/roles
  • Auth
    HTTP bearer

Path parameters

project_idstring required

The ID of the project to update.

user_idstring required

The ID of the user that should receive the project role.

Request body

role_idstring required

Identifier of the role to assign.

Response

Project role assigned to the user successfully.

object'user.role' required

Always user.role.

Changes

    • info

      added the optional property ////// to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status