Assigns events to a single category.
This function requires elevated permissions and runs only on the backend and on dashboard pages.
ID of category to which events should be assigned.
A list of events IDs.