Resource functions
Collection functions
Search functions
IIIF
Metadata functions
User functions
System
Message functions
Plugin functions
Share functions
Tab functions
Dash functions

get_resource_collections

Retrieves a list of collections that a resource is used in for the specified resource reference.

Variable Description Data type
$ref * Resource ID int

Return values

Array of collections with the collection ID, name and description. False on failure. 

Example response:

[
    {
        "ref": 6,
        "name": "Upload 20260415144727",
        "description": ""
    },
    {
        "ref": 7,
        "name": "Test collection",
        "description": "Collection description"
    }
]