Skip to content
Primary navigation

Modify project

admin.organization.projects.update(project_id, **kwargs) -> Project { id, created_at, object, 4 more }
POST/organization/projects/{project_id}

Modifies a project in the organization.

ParametersExpand Collapse
project_id: String
external_key_id: String

External key ID to associate with the project.

geography: String

Geography for the project.

name: String

The updated name of the project, this name appears in reports.

ReturnsExpand Collapse
class Project { id, created_at, object, 4 more }

Represents an individual project.

id: String

The identifier, which can be referenced in API endpoints

created_at: Integer

The Unix timestamp (in seconds) of when the project was created.

formatunixtime
object: :"organization.project"

The object type, which is always organization.project

archived_at: Integer

The Unix timestamp (in seconds) of when the project was archived or null.

formatunixtime
external_key_id: String

The external key associated with the project.

name: String

The name of the project. This appears in reporting.

status: String

active or archived

Modify project

require "openai"

openai = OpenAI::Client.new(admin_api_key: "My Admin API Key")

project = openai.admin.organization.projects.update("project_id")

puts(project)
{
  "id": "id",
  "created_at": 0,
  "object": "organization.project",
  "archived_at": 0,
  "external_key_id": "external_key_id",
  "name": "name",
  "status": "status"
}
Returns Examples
{
  "id": "id",
  "created_at": 0,
  "object": "organization.project",
  "archived_at": 0,
  "external_key_id": "external_key_id",
  "name": "name",
  "status": "status"
}