feat: ability to edit user settings in bulk (#597)

This commit is contained in:
David
2021-01-24 16:29:43 -08:00
committed by GitHub
parent 2f75c4c6ae
commit 4b0241c3b3
8 changed files with 492 additions and 289 deletions

View File

@@ -2228,6 +2228,36 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/User'
put:
summary: Update batch of users
description: |
Update users with given IDs with provided values in request `body.settings`. You cannot update users' plex tokens through this request.
Requires the `MANAGE_USERS` permission.
tags:
- users
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
ids:
type: array
items:
type: integer
permissions:
type: integer
responses:
'200':
description: Successfully updated user details
content:
application/json:
schema:
type: array
$ref: '#/components/schemas/User'
/user/import-from-plex:
post:
summary: Imports all users from Plex
@@ -2270,7 +2300,7 @@ paths:
put:
summary: Update a user by user ID
description: |
Update a user with provided values in request body. You cannot update a users plex token through this request.
Update a user with provided values in request body. You cannot update a user's plex token through this request.
Requires the `MANAGE_USERS` permission.
tags: