Attention: Favorite Controller already works with v6 prefix. Please checkout General information on how to use our APIs
You can collect your favorite mediacontainers into collections. Those collections are technically mediacontainers of type “privatecollection” and subtype “favorite”. By default, you have one inside the client and one in every mediahub. Or again, to be technically correct, you have one favorite collection per clientId.
But, AdmiralCloud platform allows it to create more than one favorite collection, by just creating more mediacontainers of type “privatecollection” and subtype “favorite”. You have to use the mediaContainerId of the new collection, if you want to add mediacontainers as favorite to that collection.
Creating Favorites for external Mediahub
Use the same calls as below and make sure you send the publicAreaId and the link of the mediahub with every API request payload. The link is just the unique string identifier of your mediahub.
Reference
Find favorites
Returns all favorites for the current clientId. You can use a dedicated privateCollectionId for custom collections inside the AC Client app. For favorites in mediahubs, you must sent the publicAreaId and the link of the mediahub.
Create Favorite
Creates a new favorite. You can use a dedicated privateCollectionId for custom collections inside the AC Client app. For favorites in mediahubs, you must sent the publicAreaId and the link of the mediahub.
Delete Favorite
Deletes a favorite from your collection. You can use a dedicated privateCollectionId for custom collections inside the AC Client app. For favorites in mediahubs, you must sent the publicAreaId and the link of the mediahub.