Skip to content

ファイル取得 Tier 4

GET/api/files/:idCopied!

単一のファイルを返します。

リクエスト

パス

idstringrequired
ファイルID

レスポンス

200 OK を返します。

dataobject
ファイル
data.idstring
ファイルID

Example: 8fe89e5a-1d8f-4302-8437-fb0390ecf8eb

data.namestring
ファイル名

Example: launch-cut.mp4

data.descriptionstring?
ファイル説明

Example: Final review upload

data.modestring
ファイルのソース種別

Possible values: LOCALYOUTUBE

Example: LOCAL

data.mimeTypestring?
MIMEタイプ

Example: video/mp4

data.statusstring
アップロード状態

Possible values: UPLOADINGUPLOADEDFAILED

Example: UPLOADED

data.tagstring
レビュータグ

Possible values: IN_PROGRESSNEED_REVIEWNEED_EDITON_HOLDAPPROVEDREJECTEDCLOSED

Example: NEED_REVIEW

data.sizenumber
ファイルサイズ(バイト)

Example: 82415032

data.allowRestrictedboolean
制限付きレビュアーがこのファイルにアクセスできるかどうか

Example: true

data.ordernumber
表示順

Example: 1

data.projectobject
親プロジェクト
data.project.idstring
親プロジェクトID

Example: bdbff5de-96d7-468f-9db0-85fe28bd6b62

data.folderobject?
親フォルダー。ファイルがプロジェクト直下にある場合は `null`
data.folder.idstring
親フォルダーID

Example: 4da45fd7-207c-47e7-b7d0-d711a565a901

bash
curl 'https://api.youvico.com/api/files/8fe89e5a-1d8f-4302-8437-fb0390ecf8eb' \
  -H 'Authorization: Bearer YOUR_API_KEY'
json
{
  "data": {
    "id": "8fe89e5a-1d8f-4302-8437-fb0390ecf8eb",
    "name": "launch-cut.mp4",
    "description": "Final review upload",
    "mode": "LOCAL",
    "mimeType": "video/mp4",
    "status": "UPLOADED",
    "tag": "NEED_REVIEW",
    "size": 82415032,
    "allowRestricted": true,
    "order": 1,
    "project": {
      "id": "bdbff5de-96d7-468f-9db0-85fe28bd6b62"
    },
    "folder": {
      "id": "4da45fd7-207c-47e7-b7d0-d711a565a901"
    }
  }
}