---
title: "Update file"
method: POST
path: "/api/1/documents/{userFile}/update"
tags: ["Files"]
---

# Update file

`POST /api/1/documents/{userFile}/update`

## Request body

- object
  - `page` integer
  - `restrict-downloads` boolean, nullable
  - `expires_at` string, nullable — Must be a valid date.
  - `access` 'private' | 'public', nullable
  - `name` string, nullable — Must be at least 1 character.
  - `editable` boolean, nullable
  - `version` integer, nullable — Must be at least 1.

## Response `200`

- object
  - `Id` integer
  - `@type` string
  - `@id` string
  - `Access` string
  - `Link` string
  - `OriginalLink` string
  - `URL` string
  - `created_at` string
  - `deleted_at` string, nullable
  - `expires_at` string, nullable
  - `updated_at` string
  - `creator` object
    - `ID` integer
    - `@type` string
    - `Title` string, nullable
    - `Name` string
    - `FirstName` string
    - `LastName` string
    - `Avatar` string
    - `Scope` string
    - `HasContact` boolean
  - `Scope` string
  - `Editable` boolean
  - `RestrictDownloads` boolean
  - `current` object
    - `Id` integer
    - `Name` string
    - `Size` integer
    - `Source` string
    - `ExternalLink` string, nullable
    - `MimeType` string
    - `Stored` boolean
    - `AVStatus` string, nullable
    - `created_at` string
    - `Thumbnail` string, nullable
    - `@type` string
    - `updated_at` string
    - `deleted_at` string, nullable

---

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