mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-01 13:20:41 +01:00
feat(api): add schema for groups update route
This commit is contained in:
@@ -15,6 +15,43 @@ head:
|
||||
description: group found
|
||||
'404':
|
||||
description: group not found
|
||||
put:
|
||||
tags:
|
||||
- groups
|
||||
summary: update group data
|
||||
parameters:
|
||||
- in: path
|
||||
name: slug
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
description: slug of the group you wish to update
|
||||
example: my-test-group
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
icon:
|
||||
type: string
|
||||
example: fa-times
|
||||
additionalProperties:
|
||||
description: An object of group properties you wish to update
|
||||
example:
|
||||
responses:
|
||||
'200':
|
||||
description: group successfully updated
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
status:
|
||||
$ref: ../../components/schemas/Status.yaml#/Status
|
||||
response:
|
||||
$ref: ../../components/schemas/GroupObject.yaml#/GroupDataObject
|
||||
delete:
|
||||
tags:
|
||||
- groups
|
||||
|
||||
Reference in New Issue
Block a user