Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation
Theme

Modify project

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

Modifies a project in the organization.

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)
200 — Example
{
  "id": "id",
  "created_at": 0,
  "object": "organization.project",
  "archived_at": 0,
  "external_key_id": "external_key_id",
  "name": "name",
  "residency": "GLOBAL",
  "status": "status"
}
Parameters
project_id: String
external_key_id: String

External key ID to associate with the project.

geography: String

Deprecated.

Geography for the project. Deprecated: use residency when creating a project to configure data residency. This field is retained for backward compatibility.

name: String

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

Returns
class Project { id, created_at, object, 5 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.

residency: ProjectResidency

The residency configuration for the project.

status: String

active or archived

Returns Examples
200 — Example
{
  "id": "id",
  "created_at": 0,
  "object": "organization.project",
  "archived_at": 0,
  "external_key_id": "external_key_id",
  "name": "name",
  "residency": "GLOBAL",
  "status": "status"
}