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 2783820
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions api/client-server/content-repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -269,3 +269,30 @@ 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
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 2783820

Please sign in to comment.