---
title: "updateFile"
method: PUT
path: "/api/files"
tags: ["file-resource"]
---

# updateFile

`PUT /api/files`

## Request body

- File
  - `contentType` string
  - `id` integer
  - `path` string
  - `publicId` string, required
  - `type` 'PHOTO' | 'DOCUMENT' | 'AVATAR', required

## Response `200`

OK

## Other responses

- `201` — Created
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

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