Page MenuHomePhabricator

Add an API action to modify a page's watchlist labels
Open, LowPublic

Description

Separate to the ability to add labels when watching a page (T416291: Update action=watch API to accept label IDs), an endpoint should exist to add/remove labels for a given page(s) without modifying watch status, as part of T416615: Make watchlist labels usable via API calls and to support things like T416944: Add a page action to manage labels on a given page

This will probably still be under action=watch, but we need to make sure adding/removing labels using this doesn't affect the watchlist expiry value

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Pretty much covered this in T416291: Update action=watch API to accept label IDs now, given that the labels will replace all that the page had (i.e. making it possible to add/remove labels)

I guess the key here is in being able to add or remove labels without first fetching a watchlist item's current labels. I'm not sure we need that for anything that we're currently working on (because in all cases, the user is shown the current labels before action is taken), so shall we move this to the backlog for now?

• Samwilson changed the task status from Open to In Progress.Mar 18 2026, 4:15 AM
Samwalton9-WMF changed the task status from In Progress to Open.Wed, Sep 23, 11:53 AM