Ah, I think that link has pointed me in the right direction - the category created for the course under Blackboard_KAF>site>channels>[Blackboard Course ID] has metadata ‘channelPlaylistsIds’, whose value is the ID of the playlist. So (with the PHP client - putting out my example since I don’t find any that works with the current client):
$mdService = MetadataPlugin::get($client)->getMetadataService();
$mF = new MetadataFilter();
$mF->objectIdEqual = $cat->id;
$mF->metadataObjectTypeEqual = 2;
$md = $mdService->listAction($mF);
So it looks like, to check if a playlist is present:
foreach($md->objects as $data)
{
$mdSet = new \SimpleXMLElement($data->xml);
foreach($mdSet->Detail as $mdItem)
{
if($mdItem->Key == 'channelPlaylistsIds')
{
print("Found playlists for channel: " . $mdItem->Value. "\n");
}
}
}
Otherwise modify the XML by adding a Detail element with the new playlist, and calling $mdService->update on an updated Metadata object.