From 23acf8ffb50d24d6246cc3ea456cb4937591d50a Mon Sep 17 00:00:00 2001 From: sct Date: Wed, 24 Mar 2021 10:26:41 +0000 Subject: [PATCH] deploy: 6c75c8822842514ffd31864992e8d3ce686fea1b --- overseerr-api.yml | 57 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/overseerr-api.yml b/overseerr-api.yml index 5d5bc035d..9fe9975f0 100644 --- a/overseerr-api.yml +++ b/overseerr-api.yml @@ -3033,6 +3033,63 @@ paths: type: array items: $ref: '#/components/schemas/MediaRequest' + /user/{userId}/quota: + get: + summary: Get quotas for a specific user + description: | + Returns quota details for a user in a JSON object. Requires `MANAGE_USERS` permission if viewing other users. + tags: + - users + parameters: + - in: path + name: userId + required: true + schema: + type: number + responses: + '200': + description: User quota details in JSON + content: + application/json: + schema: + type: object + properties: + movie: + type: object + properties: + days: + type: number + example: 7 + limit: + type: number + example: 10 + used: + type: number + example: 6 + remaining: + type: number + example: 4 + restricted: + type: boolean + example: false + tv: + type: object + properties: + days: + type: number + example: 7 + limit: + type: number + example: 10 + used: + type: number + example: 6 + remaining: + type: number + example: 4 + restricted: + type: boolean + example: false /user/{userId}/settings/main: get: summary: Get general settings for a user