You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
930 B
YAML

put:
tags:
- users
summary: update user settings
parameters:
- in: path
name: uid
schema:
type: integer
required: true
description: uid of the user
example: 1
requestBody:
content:
application/json:
schema:
type: object
properties:
settings:
type: object
description: An object containing key-value pairs of user settings to update
example:
showemail: '0'
showfullname: '1'
responses:
'200':
description: successfully updated user settings
content:
application/json:
schema:
type: object
properties:
status:
$ref: ../../../components/schemas/Status.yaml#/Status
response:
$ref: ../../../components/schemas/SettingsObj.yaml#/Settings