---
title: "Update a file"
method: PATCH
path: "/storage/{connection_id}/file/{id}"
tags: ["storage", "file"]
---

# Update a file

`PATCH /storage/{connection_id}/file/{id}`

## Path parameters

- `connection_id` string, required
- `id` string, required

## Query parameters

- `fields` string[]
- `raw` string

## Request body

- StorageFile
  - `id` string
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `name` string
  - `description` string
  - `parent_id` string
  - `user_id` string
  - `size` number
  - `type` 'FILE' | 'FOLDER'
  - `mime_type` string
  - `permissions` StoragePermission[]
    - `user_id` string
    - `group_id` string
    - `roles` string[], required
    - `is_hidden` boolean
    - `is_public` boolean
  - `download_url` string
  - `hash` string
  - `data` string
  - `version` string
  - `web_url` string
  - `references` StorageReference[]
    - `id` string
    - `type` string
    - `name` string
  - `tags` string[] — labels
  - `raw` object

## Response `200`

Successful

- StorageFile
  - `id` string
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `name` string
  - `description` string
  - `parent_id` string
  - `user_id` string
  - `size` number
  - `type` 'FILE' | 'FOLDER'
  - `mime_type` string
  - `permissions` StoragePermission[]
    - `user_id` string
    - `group_id` string
    - `roles` string[], required
    - `is_hidden` boolean
    - `is_public` boolean
  - `download_url` string
  - `hash` string
  - `data` string
  - `version` string
  - `web_url` string
  - `references` StorageReference[]
    - `id` string
    - `type` string
    - `name` string
  - `tags` string[] — labels
  - `raw` object

## Changes

- **2026-08-08** `1f72720916e4` — 3 info
  - added the new optional request property `tags`
  - added the enum value `tags` to the property `items/` of the `query` request parameter `fields`
  - added the optional property `tags` to the response with the `200` status

[Change history](https://skmtc.dev/unified/apis/unified-to-api/changes/storage/:connection_id/file/:id/patch.md)

---

[API](https://skmtc.dev/unified/apis/unified-to-api.md) · [All operations](https://skmtc.dev/unified/apis/unified-to-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/unified/unified-to-api/revisions/45664a7696ac/schema)
