List a Brightcove Video Cloud folder
Use the externalItems GraphQL query to retrieve a list of items in a Brightcove Video Cloud folder (entity type is BrightcoveFolder).
Example request
The first sample code block illustrates a request to retrieve all the items under a specified folder in Brightcove Video Cloud.
{ externalItems(namespace:
"brightcove",
filter: {
context:
{ id: "5f5fb6c34b563f19" type: "BrightcoveFolder" }
}, first: 100, after: "Ng==")
{ edges {
cursor node {
identity { id type } ...
on ExternalContent { title } }
}
}
}
Example response
The second code block illustrates the corresponding response with the requested data for each folder.
{
"data": {
"externalItems": {
"edges": [
{
"cursor": "MTE=",
"node": {
"identity": {
"id": "6191261",
"type": "BrightcoveVideo"
},
"title": "Kaeser_Tasti_AU"
}
},
{
"cursor": "MTI=",
"node": {
"identity": {
"id": "6191263",
"type": "BrightcoveVideo"
},
"title": "Kaeser_Tasti_NZ"
}
},
{
"cursor": "MTM=",
"node": {
"identity": {
"id": "61912613",
"type": "BrightcoveVideo"
},
"title": "DeLaval Kaeser - NZ - 1080_approved"
}
},
{
"cursor": "MTc=",
"node": {
"identity": {
"id": "61906830",
"type": "BrightcoveVideo"
},
"title": "01_KAESER-final"
}
}
]
}
}
}