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 description: account disabled
'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 type: string
items: pushEnabled:
type: string type: bool
Topic: Topic:
type: object type: object