CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 13:15:49 GMT
content-type: text/html; charset=utf-8
cache-control: private
set-cookie: prov=3278125f-20d9-4b1b-88dc-faa76a33cedd; expires=Mon, 27 Jul 2026 13:15:49 GMT; domain=.stackexchange.com; path=/; secure; httponly
x-clacks-overhead: GNU Terry Pratchett
strict-transport-security: max-age=31536000; includeSubDomains
x-request-guid: af444925-2d49-4ab0-80c5-e73e255e2662
x-providence-cookie: 3278125f-20d9-4b1b-88dc-faa76a33cedd
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
cf-cache-status: DYNAMIC
set-cookie: __cf_bm=5RlIvAKsImiYJjxLoLIWNTjETQ8bJDkiX2JzKkTViv8-1753622149-1.0.1.1-ip.zV0t3esnfYcMdDlq39UgHCRjdRegSfUdv05DJkEhAn8jmYxsNCaTevcCyFz2mUutIztCXGaXoixxMpf6uC.4PI84zTetdMHMamkD5DtU; path=/; expires=Sun, 27-Jul-25 13:45:49 GMT; domain=.api.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: __cflb=02DiuEqtkS4jGaTk6jRLVowZ76Z4qeo49wniREo52WHtY; SameSite=None; Secure; path=/; expires=Mon, 28-Jul-25 12:15:49 GMT; HttpOnly
set-cookie: _cfuvid=BYDeBglxHqRX05yRWUsh7Nuv46mYNNEYkOOf6EWhU2s-1753622149373-0.0.1.1-604800000; path=/; domain=.api.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 965c685fdc9395be-BLR
content-encoding: gzip
Usage of /comments/{id}/flags/add [POST] -
Stack Exchange API
https://stackoverflow.com/oauth/dialog?client_id=1&key=U4DMV*8nvpm3EOpvf69Rxw((&redirect_uri=https%3a%2f%2fapi.stackexchange.com%2fdocs%2foauth_landing
U4DMV*8nvpm3EOpvf69Rxw((
Usage of /comments/{id}/flags/add POST
Discussion
Casts a flag against the comment identified by id.
The available flag_options on a comment are not constant, and must be fetched from /comments/{id}/flag/options.
Use an access_token with write_access to create a flag.
Note that the addition of is_retraction
2.3 to flag_options
means that POSTing an existing Flag Id through flag_option.id
when is_retraction
is true will retract the flag instead of returning an error (as had happened in previous versions).
This method returns the comment being flagged.
Try It
about blog terms of use contact us feedback always welcome
site design / logo © 2025 Stack Exchange, Inc; user contributions licensed under CC BY-SA