discourse/spec/requests/api/schemas/json/post_update_request.json
Régis Hanol f1a8a63865
DEV: Add bypass_bump parameter to post update API (#36976)
Adds a new `bypass_bump` parameter to the post update endpoint that
allows privileged users (staff and TL4) to update a post without bumping
the topic.

The parameter can be passed as either a query param
(`?bypass_bump=true`) or in the request body (`post[bypass_bump]=true`).

When omitted, behavior is unchanged - edits to the last post in a topic
will bump it as usual.

Closes #34712

Co-authored-by: Ethan M <176145523+Ethsim12@users.noreply.github.com>
2026-01-14 15:32:47 +01:00

22 lines
472 B
JSON
Vendored

{
"additionalProperties": false,
"properties": {
"post": {
"type": "object",
"additionalProperties": false,
"properties": {
"raw": {
"type": "string"
},
"edit_reason": {
"type": "string"
}
},
"required": ["raw"]
},
"bypass_bump": {
"type": "boolean",
"description": "Skip bumping the topic when updating the post. Requires staff or TL4 permissions."
}
}
}