---
title: "Update File Content"
method: PUT
path: "/agent-knowledge/files/{entry_id}/content"
tags: ["agent-knowledge"]
---

# Update File Content

`PUT /agent-knowledge/files/{entry_id}/content`

## Request

- Base URL: `https://api.traversal.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.traversal.com/agent-knowledge/files/{entry_id}/content`
- Auth: none declared

## Path parameters

- `entry_id` string, required

## Headers

- `If-Match` string, nullable

## Request body

- UpdateAgentKnowledgeFileContentRequest
  - `content` string, required
  - `contentType` string
  - `summary` string, nullable

## Response `200`

Successful Response

- AgentKnowledgeFileResponse
  - `id` string, required
  - `filePath` string, required
  - `parentPath` string, required
  - `name` string, required
  - `contentType` string, required
  - `sizeBytes` integer, required
  - `contentSha256` string, required
  - `contentEtag` string, required
  - `s3VersionId` string, required
  - `summary` string, nullable
  - `status` string, required
  - `creator` string, required
  - `entryKind` string, required
  - `categoryLabel` string, required
  - `sourceLabel` string, required
  - `commentCount` integer
  - `isUserGenerated` boolean, required
  - `isUserVisible` boolean, required
  - `createdByUserId` string, nullable
  - `createdBy` AgentKnowledgeActorResponse
    - `userId` string, required
    - `displayName` string, nullable
    - `email` string, nullable
    - `avatarUrl` string, nullable
  - `sourceSessions` AgentKnowledgeSourceSessionResponse[]
    - `sessionId` string, required
    - `sessionTitle` string, nullable
    - `createdAt` string, date-time, nullable
  - `disabledAt` string, date-time, nullable
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `422`: Validation Error

## Changes

> 66 revisions in range; 9 not diffed.

- **2026-09-10** `47dcc19b4add`: 1 info
  - added the optional property `sourceSessions` to the response with the `200` status

[Operation history](https://skmtc.dev/traversal/apis/traversal-api/changes/agent-knowledge/files/:entry_id/content/put.md)

---

[API](https://skmtc.dev/traversal/apis/traversal-api.md) - [All operations](https://skmtc.dev/traversal/apis/traversal-api/llms.txt) - [OpenAPI document](https://skmtc.dev/traversal/apis/traversal-api/revisions/31e1a8b7cf89?raw)
