mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
added endpoint to set notification enabled state
This commit is contained in:
parent
2ec0083053
commit
0ea5be0210
50
doc/api.oa3
50
doc/api.oa3
@ -2529,6 +2529,48 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
|
/content/channels/{channelId}/notification:
|
||||||
|
put:
|
||||||
|
tags:
|
||||||
|
- content
|
||||||
|
description: Set notification enabled state for the specified channel
|
||||||
|
operationId: set-channel-notifications
|
||||||
|
parameters:
|
||||||
|
- name: channelId
|
||||||
|
in: path
|
||||||
|
description: specified channel id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: agent
|
||||||
|
in: query
|
||||||
|
description: access token granted to agent
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: contact
|
||||||
|
in: query
|
||||||
|
description: access token granted to contact
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: success
|
||||||
|
'401':
|
||||||
|
description: permission denied
|
||||||
|
'404':
|
||||||
|
description: field, channel not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
|
'500':
|
||||||
|
description: internal server error
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: bool
|
||||||
|
|
||||||
/content/channels/{channelId}/subject/{field}:
|
/content/channels/{channelId}/subject/{field}:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
@ -3910,7 +3952,7 @@ components:
|
|||||||
members:
|
members:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: string
|
$ref: '#/components/schemas/ChannelMember'
|
||||||
|
|
||||||
ChannelSummary:
|
ChannelSummary:
|
||||||
type: object
|
type: object
|
||||||
@ -3933,15 +3975,15 @@ components:
|
|||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
ChannelMembers:
|
ChannelMember:
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
- members
|
- members
|
||||||
properties:
|
properties:
|
||||||
members:
|
members:
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
type: string
|
type: string
|
||||||
|
pushEnabled:
|
||||||
|
type: bool
|
||||||
|
|
||||||
Topic:
|
Topic:
|
||||||
type: object
|
type: object
|
||||||
|
Loading…
Reference in New Issue
Block a user