Media tag groups
The tag groups the media library files by, including the ones AI analysis fills in — defining them, and replacing the structure wholesale.
List tag groups
Returns a library's tag groups and the tags in each, including the groups AI analysis fills in. scope picks the library — media for the photo library, docs for the document library — and defaults to media. The two vocabularies are independent even where a group name appears in both.
query Parameters
cursor^[A-Za-z0-9_-]+$limitmt_activemt_ai_detectionmt_groupoffsetscopesort^-?[a-z0-9_]+$Headers
X-Tenant-IdThe workspace this request acts in. Every row the API returns is isolated to it at the database layer by row-level security.
List tag groups › Responses
Success
Replace tag groups
Send the whole structure — this replaces it rather than merging into it. It replaces one scope only, so saving the photo library's groups leaves the document library's alone.
Headers
X-Tenant-IdThe workspace this request acts in. Every row the API returns is isolated to it at the database layer by row-level security.
Replace tag groups › Responses
Success
