function setCategories
setCategories(
id: string,
categoryIds: string[]
): void

Replaces the categories of the dump or playlist id, as kind says, with categoryIds, duplicates dropped. An empty list takes it out of every category. Called inside the dump or playlist service's transaction, it joins that one.

Parameters

id: string
categoryIds: string[]

Return Type

void

Throws

APIException

400 when an id names no category of kind.

Usage

import { setCategories } from "api/services/category-service.ts";