> This page is for version v4 (default).
> For other versions, use one of these documentation indexes:
> - v4 (default): https://help.getzep.com/v4/llms.txt
> - v3: https://help.getzep.com/v3/llms.txt
> - v2: https://help.getzep.com/v2/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://help.getzep.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://help.getzep.com/_mcp/server.

# Set project knowledge

PUT https://api.getzep.com/api/v4/project/knowledge
Content-Type: application/json

Replaces the complete set of domain knowledge entries at this scope. The knowledge\_api account flag must be enabled.
Response example: \{"knowledge":\[\{"name":"CRM","text":"CRM means the customer service."}],"inherited":false}
Request example: \{"knowledge":\[\{"name":"CRM","text":"CRM means the customer service."}]}

Reference: https://help.getzep.com/sdk-reference/project/set-knowledge

## Authentication

- `Authorization` header (required) (prefixed with ` Api-Key  `) — Type "Api-Key" followed by a space and the project API key.

## Request

### Body (application/json)

This endpoint expects a v4.SetKnowledgeRequest.

- `knowledge` (list of v4.KnowledgeEntry, optional) — The complete set of domain knowledge entries. An empty list clears the scope.

## Response

### 200

OK

- `inherited` (boolean, optional) — Inherited is true when the graph uses the project entries.
- `knowledge` (list of v4.KnowledgeEntry, optional) — The domain knowledge entries in effect at this scope.

## Errors

### 400 Bad Request Error

Bad Request

- `error` (v4.ErrorBody, optional)

### 401 Unauthorized Error

Unauthorized

- `error` (v4.ErrorBody, optional)

### 404 Not Found Error

Not Found

- `error` (v4.ErrorBody, optional)

## Types

### v4.KnowledgeEntry

- `name` (string, required) — The name identifies the entry within its scope.
- `text` (string, required) — The text describes a term, an alias, or another domain fact.

### v4.ErrorBody

- `code` (string, optional)
- `details` (map from string to any, optional)
- `message` (string, optional)
- `param` (string, optional)
- `request_id` (string, optional)

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "inherited": false,
  "knowledge": [
    {
      "name": "CRM",
      "text": "CRM means the Acme customer relationship management service."
    }
  ]
}
```