Skip to content

Update File Tier 4

PATCH/api/files/:idCopied!

Updates a file.

Example

ts
await client.files.update("FX1234567890ABCD", {
  name: "launch-final.mp4",
  description: "Final version",
  allowRestricted: false,
  folder: { id: "DX1234567890ABCD" },
});
bash
youvico file update \
  --id FX1234567890ABCD \
  --name "launch-final.mp4" \
  --description "Final version" \
  --folder DX1234567890ABCD
bash
curl -X PATCH 'https://api.youvico.com/api/files/FX1234567890ABCD' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{ "name": "launch-final.mp4", "description": "Final version", "allowRestricted": false, "folder": { "id": "DX1234567890ABCD" } }'

Request

Path

idstringrequired
File ID

Body

namestring

1–255 characters

File name
descriptionstring?

1–255 characters

File description
allowRestrictedboolean
Whether restricted reviewers can access the file
folderobject?
Parent folder
folder.idstring
Parent folder ID

Example: DX1234567890ABCD

Response

Returns 204 No Content.