User Manual

Assets - List assets

Route URL

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

Description

Get the details of all assets in a project for a specific branch

Example

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

HTTP Request

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

Parameters

projectId: number

The id of the project to list assets from

branchId: string

The id of the branch

Response Schema

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,
    }
}

Errors

401

Unauthorized

403

Forbidden

404

Project not found

429

Too many requests

Rate Limiting

This route uses a normal rate limit.

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