User Manual

アセット - List assets

ルートURL

GET https://playcanvas.com/api/projects/:projectId/assets?branchId=:branchId

説明

特定のブランチのプロジェクト内のすべてのアセットの詳細を取得します。

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

HTTP リクエスト

GET https://playcanvas.com/api/projects/{projectId}/assets?branchId={branchId}
Authorization: Bearer {accessToken}

パラメーター

projectId: number

アセットをリストするプロジェクトのID。

branchId: string

ブランチのID。

レスポンススキーマ

Status: 200
{
    "result": [{
        "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
    }, ...],
    "pagination": {
        "skip": int,
        "limit": int,
        "total": int,
    }
}

エラー

401

Unauthorized

403

Forbidden

404

Project not found

429

Too many requests

レート制限

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

This site is translated by the community. If you want to get involved visit this page