파일 수정 Tier 4
PATCH/api/files/:idCopied!
파일을 수정합니다.
예시
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 DX1234567890ABCDbash
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" } }'요청
경로
idstringrequired 파일 ID
본문
namestring1–255 characters
파일 이름
descriptionstring?1–255 characters
파일 설명
allowRestrictedboolean 제한된 리뷰어가 파일에 접근할 수 있는지 여부
folderobject? 상위 폴더
folder.idstring 상위 폴더 ID
Example: DX1234567890ABCD
응답
204 No Content를 반환합니다.