---
title: "UpdateFile"
method: PUT
path: "/v1/files/"
tags: ["files"]
---

# UpdateFile

`PUT /v1/files/`

Move a dir/file, update name and/or permissions (Only sourcePath is required).

## Request body

- DtoUpdateUnixFiles
  - `destinationPath` string
  - `encodedContent` string
  - `ownership` string
  - `permissions` string
  - `shouldFixPermissions` boolean
  - `sourcePaths` string[]

## Response `200`

FileUpdated

- object

## Other responses

- `207` — FilesArePartialUpdated

---

[API](https://skmtc.net/goinfinite/apis/osapi.md) · [All operations](https://skmtc.net/goinfinite/apis/osapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/goinfinite/osapi/versions/7320a5d8ef9e/schema)
