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)
/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.fkey
. This is a request to permit applications/scripts with a SE API Write Token to be able to retract flags, just like they can raise flags. The issue you've linked to is mostly a UI issue, which isn't impacted by this issue.