Smart collections are search-query–driven groupings of media items. Rather than manually curating a fixed list of content, a smart collection re-evaluates a Lucene-style search query against the media library every time the playout engine references it. The Collections API gives full CRUD access to smart collections.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ErsatzTV/legacy/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/collections/smart
Returns a list of all smart collections. Operation ID:GetSmartCollections.
Response Fields
Internal database identifier for the smart collection.
Display name for the collection.
The search query string that defines the collection’s contents. Uses ErsatzTV’s Lucene-style search syntax.
POST /api/collections/smart/new
Creates a new smart collection. Operation ID:CreateSmartCollection.
Request Body
Display name for the new smart collection.
The search query that populates the collection (e.g.
genre:Action type:movie).Response Fields
The ID of the newly created smart collection.
200 OK with the CreateSmartCollectionResult object on success, or an HTTP Problem response on failure.
PUT /api/collections/smart/update
Updates an existing smart collection’s name or query. Operation ID:UpdateSmartCollection.
Request Body
The ID of the smart collection to update.
The new display name for the collection.
The updated search query string.
200 OK with an UpdateSmartCollectionResult on success, or a Problem response on failure.
DELETE /api/collections/smart/delete/
Deletes a smart collection by its integer ID. Operation ID:DeleteSmartCollection.
The ID of the smart collection to delete.
200 OK on success, or a Problem response if the deletion fails (for example, if the collection is referenced by an active schedule block).
Deleting a smart collection does not immediately affect running playouts, but any schedule blocks or scripted schedules that reference the deleted collection will fail to resolve content on the next playout rebuild.
