Projects

Modify project model permissions

Changed on

Updates model permissions for a project.

post/organization/projects/{project_id}/model_permissions

Request

  • Base URL
    https://api.openai.com/v1
  • URL
    https://api.openai.com/v1/organization/projects/{project_id}/model_permissions
  • Auth
    HTTP bearer

Path parameters

project_idstring required

The ID of the project.

Request body

mode'allow_list' | 'deny_list' required

The model permissions mode to apply.

model_idsstring[] required

The model IDs included in this permissions policy.

Response

Project model permissions updated successfully.

object'project.model_permissions' required

The object type, which is always project.model_permissions.

mode'allow_list' | 'deny_list' required

Whether the project uses an allowlist or a denylist.

model_idsstring[] required

The model IDs included in the model permissions policy.

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

    • info

      added the non-success response with the status