CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 11:30:54 GMT
content-type: text/html; charset=utf-8
cache-control: private
set-cookie: prov=c12d859c-ad10-4a26-9763-97512ad6170c; expires=Mon, 27 Jul 2026 11:30:54 GMT; domain=.stackexchange.com; path=/; secure; httponly
x-clacks-overhead: GNU Terry Pratchett
strict-transport-security: max-age=31536000; includeSubDomains
x-request-guid: 0a3c86d2-ac77-4c08-9bc5-5e8a314e7cc9
x-providence-cookie: c12d859c-ad10-4a26-9763-97512ad6170c
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
cf-cache-status: DYNAMIC
set-cookie: __cf_bm=V8gOSUoebpr0QQNxtm1P9YrrgQPXV9Pj_XM5RAW0WjM-1753615854-1.0.1.1-rdHHp1HomqkUNUPJ1KuftNjA3fVRYX3A.RTD6FTyJ2OLdxwwjDjKlgxv5c3RwgsOKOtudOmR0kIyDE5OVtv_xZoyIdpPmTJdPHgvBiU4y20; path=/; expires=Sun, 27-Jul-25 12:00:54 GMT; domain=.api.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: __cflb=02DiuEqtkS4jGaTk6jRLVowZ76Z4qeo49efg5hAbX8EWg; SameSite=None; Secure; path=/; expires=Mon, 28-Jul-25 10:30:54 GMT; HttpOnly
set-cookie: _cfuvid=uHNE6klAg0ZZG0gfjpB0.KWscnKu.LEh_jByUpcQG0k-1753615854574-0.0.1.1-604800000; path=/; domain=.api.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 965bceb15804dfa6-BLR
content-encoding: gzip
Usage of /answers/{id}/accept [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 /answers/{id}/accept POST
Discussion
Accepts an answer.
Use an access_token with write_access to accept. Accept votes can only be cast on answers to questions owned by the access_token's user, and only if no other answer is accepted.
To undo an accept use the /answers/{id}/accept/undo method.
This method returns the accepted answer.
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