ファイル更新 Tier 4
PATCH/api/files/:idCopied!
ファイルを更新します。
例
ts
await client.files.update("FX1234567890ABCD", {
name: "launch-final.mp4",
description: "Final version",
allowRestricted: false,
});bash
youvico file update --id FX1234567890ABCD --name="launch-final.mp4" --description="Final version"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 }'リクエスト
パス
idstringrequired ファイルID
ボディ
namestring1–255 characters
ファイル名
descriptionstring?1–255 characters
ファイル説明
allowRestrictedboolean 制限付きレビュアーがファイルにアクセスできるかどうか
レスポンス
204 No Content を返します。