Merge commit '507517fce5248ad37f6a239fce16ae92d0e0f5b0' into v1.18.x
commit
36653525bd
@ -1,7 +1,7 @@
|
||||
{
|
||||
"alert.confirm-rebuild-and-restart": "Are you sure you wish to rebuild and restart NodeBB?",
|
||||
"alert.confirm-restart": "Are you sure you wish to restart NodeBB?",
|
||||
"alert.confirm-rebuild-and-restart": "Ste prepričani, da želite znova zagnati NodeBB?",
|
||||
"alert.confirm-restart": "Ste prepričani, da želite znova zagnati NodeBB?",
|
||||
|
||||
"acp-title": "%1 | NodeBB Admin Control Panel",
|
||||
"acp-title": "NodeBB administracijska nadzorna plošča",
|
||||
"settings-header-contents": "Contents"
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
put:
|
||||
tags:
|
||||
- users
|
||||
summary: update user picture or icon background colour
|
||||
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:
|
||||
type:
|
||||
type: string
|
||||
description: The source of the picture
|
||||
enum: ['default', 'uploaded', 'external']
|
||||
example: default
|
||||
url:
|
||||
type: string
|
||||
description: Only used for `external` type, specifies the source of the external image to use as avatar
|
||||
example: ''
|
||||
bgColor:
|
||||
type: string
|
||||
description: A hexadecimal colour representation
|
||||
example: '#ff0000'
|
||||
responses:
|
||||
'200':
|
||||
description: successfully updated user picture
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
status:
|
||||
$ref: ../../../components/schemas/Status.yaml#/Status
|
||||
response:
|
||||
type: object
|
Loading…
Reference in New Issue