アセット - Get Asset
ルートURL
GET https://playcanvas.com/api/assets/:assetId?branchId=:branchId
説明
単一アセットの詳細を取得します。
例
curl -H "Authorization: Bearer {accessToken}" https://playcanvas.com/api/assets/{assetId}?branchId={branchId}
HTTPリクエスト
GET https://playcanvas.com/api/assets/{assetId}?branchId={branchId}
Authorization: Bearer {accessToken}
パラメーター
branchId:string
ブランチのID。
レスポンススキーマ
ステータス:200
{
"id": int,
"modifiedAt": date,
"createdAt": date,
"state": "ready" | "processing" | "error",
"name": string,
"type": string,
"scope":{
"type": string,
"id": int
},
"source": bool,
"sourceId": bool,
"tags": list of strings,
"preload": bool,
"file": {
"hash": string,
"filename": string,
"size": int,
"url": string
},
"parent": int
}
エラー
401
Unauthorized
403
Forbidden
404
Project or Asset not found
429
Too many requests
レート制限
このルートは通常のレート制限を使用します。