メインコンテンツまでスキップ

アセット - Get Asset File

ルートURL​

GET https://playcanvas.com/api/assets/:assetId/file/:filename?branchId=:branchId

説明​

単一アセットの詳細を取得します。

例​

curl -H "Authorization: Bearer {accessToken}" "https://playcanvas.com/api/assets/{assetId}/file/{filename}?branchId={branchId}"

HTTP リクエスト

GET https://playcanvas.com/api/assets/{assetId}/file/{filename}?branchId={branchId}
Authorization: Bearer {accessToken}

パラメーター​

名前タイプRequired説明
assetIdnumber✔️The id of the asset.
branchIdstring✔️The id of the branch.
filenamestring✔️The filename of the asset.

レスポンススキーマ​

ステータス:200
{fileContents}

エラー​

コード説明
401Unauthorized
403Forbidden
404Project or Asset not found
429Too many requests

レート制限​

このルートは通常のレート制限を使用します。