For a project I'm working on, it'd be nice to be able to retract flags through the API.

We allow people to retract flags from the web. Could this functionality be extended to the API? It could work such that you receive a 'Retract Flags' option on calls to /questions/{id}/flags/options, then pass it to /questions/{id}/flags/add to retract flags.

Thoughts? I don't think this is open to abuse, and it'd help some automation projects (and folks using the apps)

  • 12
    This would be really useful, because it would allow people who run automation apps to redact false positive flags via the API, without having to manually log in to their sock and redact the flag manually. – angussidney Dec 15 '16 at 6:29
  • 2
    Bounty on a feature request seems a bit like bribery ;) – faintsignal Dec 17 '16 at 7:36
  • 6
    @faintsignal Rep doesn't matter too much to the SE devs.... they can just edit the database :P – angussidney Dec 18 '16 at 10:00
  • 7
    A related request would be allowing us to get the status of a flag: meta.stackexchange.com/questions/245416/… – Andy Dec 29 '16 at 2:05
  • 1
    Accessing the /add verb to retract a flag makes me twitchy. Checking the API docs, votes use the /undo verb. For flags we could use /undo as well, or use /retract. If I understand correctly, we wouldn't need to access /options first to receive a "retract flags" option either -- we just request retraction, and either there is a flag and it gets retracted, or there isn't and nothing happens. – doppelgreener Jan 3 at 14:46
  • 3
    @doppelgreener And I too, but ultimately the request is aimed at ease of implementation. Adding it to /options and /add would immediately show the retract option in the mobile apps without client-side work. – Undo Jan 3 at 15:08

You must log in to answer this question.

Browse other questions tagged .