Median

POST /knowledge/suggestions/{id}/approve

Updated Oct 1, 20261 minute read

Approve a suggestion

The yes that writes: a new document, or an update to the one this finding is for.

Part of Knowledge.

Parameters

NameInTypeRequiredDescription
idpathstringYesA suggestion id.

Responses

StatusDescription
200The document it became.
401The bearer token is missing, revoked, or expired.
404Not one of yours, or not there at all.
409It already exists, or it was already settled.
429Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits.

200 body

FieldTypeRequiredDescription
docIdstringNo

Example request

curl -X POST https://api.median.sh/v1/knowledge/suggestions/id/approve \
  -H "Authorization: Bearer $BEARER_AUTH"

Still need help?

    Esc