Skip to content

Commit

Permalink
Initial draft of GET media/limits
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed May 3, 2018
1 parent 5274e9c commit 0b2ad58
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions api/client-server/content-repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -269,3 +269,31 @@ paths:
"$ref": "definitions/error.yaml"
tags:
- 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
required: []
properties:
size:
type: number
description: "The maximum size a upload can be in bytes."
examples:
application/json: {
"size": 50000000
}
tags:
- Media

0 comments on commit 0b2ad58

Please sign in to comment.