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.
72 lines
1.9 KiB
YAML
72 lines
1.9 KiB
YAML
post:
|
|
tags:
|
|
- groups
|
|
summary: create a new group
|
|
description: This operation creates a new group
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
name:
|
|
type: string
|
|
timestamp:
|
|
type: number
|
|
disableJoinRequests:
|
|
type: number
|
|
enum: [0, 1]
|
|
disableLeave:
|
|
type: number
|
|
enum: [0, 1]
|
|
hidden:
|
|
type: number
|
|
enum: [0, 1]
|
|
ownerUid:
|
|
type: number
|
|
private:
|
|
type: number
|
|
enum: [0, 1]
|
|
description:
|
|
type: string
|
|
userTitleEnabled:
|
|
type: number
|
|
enum: [0, 1]
|
|
createtime:
|
|
type: number
|
|
required:
|
|
- name
|
|
example:
|
|
name: 'My Test Group'
|
|
hidden: 1
|
|
responses:
|
|
'200':
|
|
description: group successfully created
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
status:
|
|
$ref: ../components/schemas/Status.yaml#/Status
|
|
response:
|
|
$ref: ../components/schemas/GroupObject.yaml#/GroupDataObject
|
|
delete:
|
|
tags:
|
|
- groups
|
|
summary: Delete an existing group
|
|
description: This operation deletes an existing group, all members within this group will cease to be members after the group is deleted.
|
|
responses:
|
|
'200':
|
|
description: group successfully deleted
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
status:
|
|
$ref: ../components/schemas/Status.yaml#/Status
|
|
response:
|
|
type: object
|
|
properties: {} |