How to close StackOverflow Question using API?

I found APIs in the documentation to Edit a 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.