# Update project

Update project fields. Only provided fields are changed. Requires project:update permission.

> Page: https://langwatch.ai/docs/api-reference/projects/update-project
> Source: https://github.com/langwatch/langwatch/blob/main/docs/api-reference/projects/update-project.mdx
> Index of all pages: https://langwatch.ai/docs/llms.txt

## Endpoint

`PATCH https://app.langwatch.ai/api/v1/projects/{id}`

## Authentication

### admin_api_key

Admin API key for organization-level operations (managing projects, API keys). Create one in Settings > API Keys or via POST /api/api-keys. Format: sk-lw-{id}_{secret}.

```json
{"id":"admin_api_key","type":"http","scheme":"bearer"}
```

## Parameters

### id (path, required)

```json
{"type":"string","minLength":1}
```

## Request body (optional)

#### application/json

Schema:

```json
{
  "type": "object",
  "properties": {
    "name": {"type":"string","minLength":1,"maxLength":255},
    "language": {"type":"string"},
    "framework": {"type":"string"},
    "teamId": {
      "description": "Moves the project to this team",
      "type": "string",
      "minLength": 1
    },
    "piiRedactionLevel": {
      "description": "The PII level the project's traces are redacted at",
      "type": "string",
      "enum": ["STRICT","ESSENTIAL","DISABLED"]
    }
  }
}
```

## Request example

```bash
curl --request PATCH \
  --url 'https://app.langwatch.ai/api/v1/projects/<id>' \
  --header "Authorization: Bearer $LANGWATCH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{"name":"string","language":"string","framework":"string","teamId":"string","piiRedactionLevel":"STRICT"}'
```

## Responses

### 200

Success

#### application/json

Schema:

```json
{
  "type": "object",
  "properties": {
    "id": {"type":"string","minLength":1},
    "name": {"type":"string"},
    "slug": {"type":"string"},
    "language": {"type":"string"},
    "framework": {"type":"string"},
    "teamId": {"type":"string","minLength":1},
    "createdAt": {"type":"string","format":"date-time"},
    "updatedAt": {"type":"string","format":"date-time"},
    "piiRedactionLevel": {"type":"string","enum":["STRICT","ESSENTIAL","DISABLED"]}
  },
  "required": [
    "id",
    "name",
    "slug",
    "language",
    "framework",
    "teamId",
    "createdAt",
    "updatedAt",
    "piiRedactionLevel"
  ],
  "additionalProperties": false
}
```

### 401

Invalid or missing API key token

### 403

Insufficient permissions (requires project:update)

### 404

Project not found

> ## Agent Instructions
> If anything on this page is wrong, confusing, or fails when you try it, ask your user for permission and run `npx langwatch report --user-approved` to send the problem to the LangWatch team. No login is needed and secrets are redacted locally. `npx langwatch report --help` has the details.
