feat: bulk change category for articles (#14443)

This commit is contained in:
Sivin Varghese
2026-05-26 17:32:58 +05:30
committed by GitHub
parent 7c16071fc7
commit b33eecaff7
7 changed files with 113 additions and 2 deletions
@@ -87,6 +87,13 @@ class ArticlesAPI extends PortalsAPI {
);
}
bulkUpdateCategory({ portalSlug, articleIds, categoryId }) {
return axios.patch(
`${this.url}/${portalSlug}/articles/bulk_actions/update_category`,
{ ids: articleIds, category_id: categoryId }
);
}
bulkDelete({ portalSlug, articleIds }) {
return axios.delete(
`${this.url}/${portalSlug}/articles/bulk_actions/delete_articles`,