#1028: categories API updated.