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

Project admin().organization().projects().update(params = ProjectUpdateParams.none(), requestOptions = RequestOptions.none())
POST
/organization/projects/{project_id}

Modifies a project in the organization.

Modify project

package com.openai.example;

import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.admin.organization.projects.Project;
import com.openai.models.admin.organization.projects.ProjectUpdateParams;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        OpenAIClient client = OpenAIOkHttpClient.fromEnv();

        Project project = client.admin().organization().projects().update("project_id");
    }
}
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
ProjectUpdateParams params
Optional<String> projectId
Optional<String> externalKeyId

External key ID to associate with the project.

Optional<String> geography

Deprecated.

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

Optional<String> name

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

Returns
class Project:

Represents an individual project.

String id

The identifier, which can be referenced in API endpoints

long createdAt

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

formatunixtime
JsonValue; object_
constant
constant

The object type, which is always organization.project

Optional<Long> archivedAt

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

formatunixtime
Optional<String> externalKeyId

The external key associated with the project.

Optional<String> name

The name of the project. This appears in reporting.

Optional<ProjectResidency> residency

The residency configuration for the project.

Optional<String> status

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"
}