0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-11 02:59:07 +08:00
discourse/spec/requests/api/schemas/json/post_action_request.json
Blake Erickson faefa28792
DEV: Update api doc specs for post actions (#35428)
This change updates the api doc specs for `/post_actions.json` endpoint
so that it uses the new json schema format.
2025-10-15 17:01:08 -06:00

21 lines
No EOL
545 B
JSON
Vendored

{
"additionalProperties": false,
"properties": {
"id": {
"type": "integer",
"description": "The ID of the post to perform the action on"
},
"post_action_type_id": {
"type": "integer",
"description": "The ID of the post action type (e.g., 2 for like)"
},
"flag_topic": {
"type": "boolean",
"description": "Whether to flag the entire topic"
}
},
"required": [
"id",
"post_action_type_id"
]
}