update category api sample