The method then returns a response containing information about all the assets belonging to a specific group, like a Collection.
groupKey
The key of the group (e.g., "collection").
"collection"
Yes
groupValue
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"]
{ sortBy: <value>, sortDirection: <value> }
["created", "updated", "recentAction", "none"]
sortDirection
["asc", "desc"]
No
page
The index of the "page" to retrieve.
before
Fetch assets before the given ID.
after
Fetch assets after the given ID.
{ "jsonrpc": "2.0", "id": "123", "method": "getAssetsByGroup", "params": { "groupKey": "collection", "groupValue": "BUjZjAS2vbbb65g7Z1Ca9ZRVYoJscURG5L3AkVvHP9ac", "page": 1, "limit": 50 } }
Last updated 4 months ago
Was this helpful?