How to close StackOverflow Question using API?

I found APIs in the documentation to Edit a question - https://api.stackexchange.com/docs/edit-question which takes the title, body, tags etc. as post body request. How can I cast a close vote/flag via the Stack Exchange API?

1 answer

  • answered 2020-10-26 18:58 Progman

    When you want to close a question, you flag the question:

    Casts a flag (including "close votes") against the question identified by id.