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

Archive project

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

Archives a project in the organization. Archived projects cannot be used or updated.

Archive project

require "openai"

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

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

puts(project)
Response example
{
    "id": "proj_abc",
    "object": "organization.project",
    "name": "Project DEF",
    "created_at": 1711471533,
    "archived_at": 1711471533,
    "status": "archived"
}
Parameters
project_id: String
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
Response example
{
    "id": "proj_abc",
    "object": "organization.project",
    "name": "Project DEF",
    "created_at": 1711471533,
    "archived_at": 1711471533,
    "status": "archived"
}