discourse/spec/requests/api/schemas/json/user_suspend_response.json
Blake Erickson 0b2b4bc245
DEV: Document the user suspend api endpoint (#12179)
Wrote an api docs rspec test for documenting the user suspend api
endpoint.
2021-02-23 05:58:22 -07:00

33 lines
615 B
JSON

{
"additionalProperties": false,
"properties": {
"suspension": {
"type": "object",
"additionalProperties": false,
"properties": {
"suspend_reason": {
"type": "string"
},
"full_suspend_reason": {
"type": "string"
},
"suspended_till": {
"type": "string"
},
"suspended_at": {
"type": "string"
}
},
"required": [
"suspend_reason",
"full_suspend_reason",
"suspended_till",
"suspended_at"
]
}
},
"required": [
"suspension"
]
}