## Modify project

`client.Admin.Organization.Projects.Update(ctx, projectID, body) (*Project, error)`

**post** `/organization/projects/{project_id}`

Modifies a project in the organization.

### Parameters

- `projectID string`

- `body AdminOrganizationProjectUpdateParams`

  - `ExternalKeyID param.Field[string]`

    External key ID to associate with the project.

  - `Geography param.Field[string]`

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

  - `Name param.Field[string]`

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

### Returns

- `type Project struct{…}`

  Represents an individual project.

  - `ID string`

    The identifier, which can be referenced in API endpoints

  - `CreatedAt int64`

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

    `format: unixtime`

  - `Object OrganizationProject`

    The object type, which is always `organization.project`

    - `const OrganizationProjectOrganizationProject OrganizationProject = "organization.project"`

  - `ArchivedAt int64`

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

    `format: unixtime`

  - `ExternalKeyID 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.

    - `const ProjectResidencyGlobal ProjectResidency = "GLOBAL"`

    - `const ProjectResidencyUsStorageProcessing ProjectResidency = "US_STORAGE_PROCESSING"`

    - `const ProjectResidencyEuStorageProcessing ProjectResidency = "EU_STORAGE_PROCESSING"`

    - `const ProjectResidencyJpStorage ProjectResidency = "JP_STORAGE"`

    - `const ProjectResidencyJpStorageProcessing ProjectResidency = "JP_STORAGE_PROCESSING"`

    - `const ProjectResidencyKrStorage ProjectResidency = "KR_STORAGE"`

    - `const ProjectResidencyCaStorage ProjectResidency = "CA_STORAGE"`

    - `const ProjectResidencySgStorage ProjectResidency = "SG_STORAGE"`

    - `const ProjectResidencyInStorage ProjectResidency = "IN_STORAGE"`

    - `const ProjectResidencyInStorageProcessing ProjectResidency = "IN_STORAGE_PROCESSING"`

    - `const ProjectResidencyAuStorage ProjectResidency = "AU_STORAGE"`

    - `const ProjectResidencyAuStorageProcessing ProjectResidency = "AU_STORAGE_PROCESSING"`

    - `const ProjectResidencyGBStorage ProjectResidency = "GB_STORAGE"`

    - `const ProjectResidencyAeStorage ProjectResidency = "AE_STORAGE"`

    - `const ProjectResidencyAeStorageProcessing ProjectResidency = "AE_STORAGE_PROCESSING"`

  - `Status string`

    `active` or `archived`

### Example

```go
package main

import (
  "context"
  "fmt"

  "github.com/openai/openai-go"
  "github.com/openai/openai-go/option"
)

func main() {
  client := openai.NewClient(
    option.WithAdminAPIKey("My Admin API Key"),
  )
  project, err := client.Admin.Organization.Projects.Update(
    context.TODO(),
    "project_id",
    openai.AdminOrganizationProjectUpdateParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", project.ID)
}
```

#### 200 — Example

```json
{
  "id": "id",
  "created_at": 0,
  "object": "organization.project",
  "archived_at": 0,
  "external_key_id": "external_key_id",
  "name": "name",
  "residency": "GLOBAL",
  "status": "status"
}
```
