mattermost/api/v4/source/limits.yaml
Harshil Sharma b4a1b33d39
Added post limit warning (#26793)
* Renamed user limit API to app limit API

* Added post warning limit

* Added tests

* Fixed types

* Renamed AppLimits to ServerLimits

* Fixed tests and review fixes

* Updated generated code

* Updated server i18n

* Fixed TestCreateUserOrGuest test

* Exclude deleted posts from post count for liims

* Reduced limits for ease of testing

* Restored original limts
2024-04-18 11:50:30 +05:30

30 lines
841 B
YAML

/api/v4/limits/server:
get:
tags:
- users
summary: Gets the server limits for the server
description: >
Gets the server limits for the server
##### Permissions
Requires `sysconsole_read_user_management_users`.
operationId: GetServerLimits
responses:
"200":
description: App limits for server
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/ServerLimits"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"403":
$ref: "#/components/responses/Forbidden"
"500":
$ref: "#/components/responses/InternalServerError"