mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-18 01:14:10 +01:00
Initial draft of GET media/limits
This commit is contained in:
parent
5274e9c146
commit
2783820f98
|
|
@ -269,3 +269,30 @@ paths:
|
||||||
"$ref": "definitions/error.yaml"
|
"$ref": "definitions/error.yaml"
|
||||||
tags:
|
tags:
|
||||||
- Media
|
- Media
|
||||||
|
"/limits":
|
||||||
|
get:
|
||||||
|
summary: Get limits on what can be uploaded to the content repository.
|
||||||
|
Clients SHOULD use this as a guide when uploading content.
|
||||||
|
All values are intentionally left optional, the client MUST assume
|
||||||
|
that any field not given is not limited.
|
||||||
|
|
||||||
|
**NOTE:** Reverse proxies may apply their own limits.
|
||||||
|
operationId: getLimits
|
||||||
|
produces: ["application/json"]
|
||||||
|
security:
|
||||||
|
- accessToken: []
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: The limits exposed by the matrix server.
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
size:
|
||||||
|
type: number
|
||||||
|
description: "The maximum size a upload can be in bytes."
|
||||||
|
examples:
|
||||||
|
application/json: {
|
||||||
|
"size": 50000000
|
||||||
|
}
|
||||||
|
tags:
|
||||||
|
- Media
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue