Get Assets By Group

The method then returns a response containing information about all the assets belonging to a specific group, like a Collection.

Request (POST)
{
    "jsonrpc": "2.0",
    "id": "123",
    "method": "getAssetsByGroup",
    "params": {
        "groupKey": "collection",
        "groupValue": "BUjZjAS2vbbb65g7Z1Ca9ZRVYoJscURG5L3AkVvHP9ac",
        "page": 1,
        "limit": 50
    }
}

Parameters (Source)

NameDescription

groupKey

Required. The key of the group (e.g., "collection").

groupValue

Required. The value of the group.

sortBy

Sorting criteria. This is specified as an object { sortBy: <value>, sortDirection: <value> }, where sortBy is one of ["created", "updated", "recentAction", "none"] and sortDirection is one of ["asc", "desc"]

page

The index of the "page" to retrieve.

before

Fetch assets before the given ID.

after

Fetch assets after the given ID.

Last updated