---
title: "Files Update"
method: PUT
path: "/agents/files/"
tags: ["agents"]
---

# Files Update

`PUT /agents/files/`

PUT handler with superadmin lock and field protection.

Same as patch() - checks lock and field protection before delegating.

## Headers

- `Authorization` string, required

## Response `200`

- AgentFileUploadResponse — Response schema for POST /agents/files/.
  - `file_id` string, required
  - `filename` string, required
  - `content_type` string, required
  - `size_bytes` integer, required
  - `kind` string, required

---

[API](https://skmtc.net/keywordsai/apis/api-reference.md) · [All operations](https://skmtc.net/keywordsai/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/keywordsai/api-reference/versions/c26d550029f8/schema)
