---
title: "Update a file asset"
method: PUT
path: "/v1/assets/files/{id}"
tags: ["Assets"]
---

# Update a file asset

`PUT /v1/assets/files/{id}`

Updates the name and/or parent folder of a file asset. The file itself (path, size) cannot be changed. At least one of `name` or `parent_folder_id` must be provided.

## Path parameters

- `id` integer, required

## Request body

- object
  - `name` string — New display name for the asset. Cannot be blank after trimming.
  - `parent_folder_id` integer, nullable — The ID of the new parent folder. Set to `null` to move the asset to the root level.

## Response `204`

File asset updated successfully.

## Other responses

- `400` — Bad request
- `401` — Unauthorized - missing or invalid API key
- `404` — Resource not found
- `409` — Conflict - linked resource or other constraint violation

---

[API](https://skmtc.dev/customer/apis/customer-io-journeys-api-reference.md) · [All operations](https://skmtc.dev/customer/apis/customer-io-journeys-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/customer/customer-io-journeys-api-reference/revisions/4b391af7cb06/schema)
