added endpoint to set notification enabled state

This commit is contained in:
Roland Osborne 2022-11-08 14:43:56 -08:00
parent 2ec0083053
commit 0ea5be0210

View File

@ -2528,7 +2528,49 @@ paths:
description: account disabled
'500':
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}:
get:
tags:
@ -3910,7 +3952,7 @@ components:
members:
type: array
items:
type: string
$ref: '#/components/schemas/ChannelMember'
ChannelSummary:
type: object
@ -3933,15 +3975,15 @@ components:
items:
type: string
ChannelMembers:
ChannelMember:
type: object
required:
- members
properties:
members:
type: array
items:
type: string
type: string
pushEnabled:
type: bool
Topic:
type: object