2024-06-23 21:12:10 +02:00
|
|
|
components:
|
|
|
|
responses:
|
|
|
|
notification200:
|
|
|
|
description: Notification endpoint success.
|
|
|
|
content:
|
|
|
|
text/html:
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
example: OK
|
|
|
|
notification404:
|
|
|
|
description: An admin user is required or notification with the given ID not found.
|
|
|
|
content:
|
|
|
|
text/html:
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
example: Series not found.
|
|
|
|
paths:
|
|
|
|
/api/notifications:
|
|
|
|
get:
|
|
|
|
operationId: getNotifications
|
2024-07-09 03:55:35 +02:00
|
|
|
summary: Get notification settings
|
2024-06-23 21:12:10 +02:00
|
|
|
description: Get all Apprise notification events and notification settings for server.
|
|
|
|
tags:
|
|
|
|
- Notification
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: Success
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
data:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
events:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '../objects/Notification.yaml#/components/schemas/NotificationEvent'
|
|
|
|
settings:
|
|
|
|
$ref: '../objects/Notification.yaml#/components/schemas/NotificationSettings'
|
|
|
|
'404':
|
|
|
|
$ref: '#/components/responses/notification404'
|
|
|
|
patch:
|
2024-07-09 03:55:35 +02:00
|
|
|
operationId: configureNotificationSettings
|
|
|
|
summary: Update select notification settings
|
|
|
|
description: Update the URL, max failed attempts, and maximum notifications that can be queued for Apprise.
|
2024-06-23 21:12:10 +02:00
|
|
|
tags:
|
|
|
|
- Notification
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
appriseApiUrl:
|
|
|
|
$ref: '../objects/Notification.yaml#/components/schemas/appriseApiUrl'
|
|
|
|
maxFailedAttempts:
|
|
|
|
$ref: '../objects/Notification.yaml#/components/schemas/maxFailedAttempts'
|
|
|
|
maxNotificationQueue:
|
|
|
|
$ref: '../objects/Notification.yaml#/components/schemas/maxNotificationQueue'
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
$ref: '#/components/responses/notification200'
|
|
|
|
'404':
|
|
|
|
$ref: '#/components/responses/notification404'
|
|
|
|
post:
|
|
|
|
operationId: createNotification
|
2024-07-09 03:55:35 +02:00
|
|
|
summary: Create notification settings
|
|
|
|
description: Create or update Notification settings.
|
2024-06-23 21:12:10 +02:00
|
|
|
tags:
|
|
|
|
- Notification
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
libraryId:
|
|
|
|
$ref: '../objects/Library.yaml#/components/schemas/libraryIdNullable'
|
|
|
|
eventName:
|
|
|
|
$ref: '../objects/Notification.yaml#/components/schemas/notificationEventName'
|
|
|
|
urls:
|
|
|
|
$ref: '../objects/Notification.yaml#/components/schemas/urls'
|
|
|
|
titleTemplate:
|
|
|
|
$ref: '../objects/Notification.yaml#/components/schemas/titleTemplate'
|
|
|
|
bodyTemplate:
|
|
|
|
$ref: '../objects/Notification.yaml#/components/schemas/bodyTemplate'
|
|
|
|
enabled:
|
|
|
|
$ref: '../objects/Notification.yaml#/components/schemas/enabled'
|
|
|
|
type:
|
|
|
|
$ref: '../objects/Notification.yaml#/components/schemas/notificationType'
|
|
|
|
required:
|
|
|
|
- eventName
|
|
|
|
- urls
|
|
|
|
- titleTemplate
|
|
|
|
- bodyTemplate
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: Success
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
settings:
|
|
|
|
$ref: '../objects/Notification.yaml#/components/schemas/NotificationSettings'
|
|
|
|
'404':
|
|
|
|
$ref: '#/components/responses/notification404'
|
|
|
|
/api/notificationdata:
|
|
|
|
get:
|
|
|
|
operationId: getNotificationEventData
|
2024-07-09 03:55:35 +02:00
|
|
|
summary: Get notification event data
|
2024-06-23 21:12:10 +02:00
|
|
|
description: Get all Apprise notification event data for the server.
|
|
|
|
tags:
|
|
|
|
- Notification
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: Success
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
events:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '../objects/Notification.yaml#/components/schemas/NotificationEvent'
|
|
|
|
'404':
|
|
|
|
$ref: '#/components/responses/notification404'
|
|
|
|
/api/notifications/test:
|
|
|
|
get:
|
|
|
|
operationId: sendDefaultTestNotification
|
2024-07-09 03:55:35 +02:00
|
|
|
summary: Send general test notification
|
2024-06-23 21:12:10 +02:00
|
|
|
description: Send a test notification.
|
|
|
|
tags:
|
|
|
|
- Notification
|
|
|
|
parameters:
|
|
|
|
- in: query
|
|
|
|
name: fail
|
|
|
|
description: Whether to intentionally cause the notification to fail. `0` for false, `1` for true.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
$ref: '#/components/responses/notification200'
|
|
|
|
'404':
|
|
|
|
$ref: '#/components/responses/notification404'
|
|
|
|
/api/notifications/{id}:
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
description: The ID of the notification.
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '../objects/Notification.yaml#/components/schemas/notificationId'
|
|
|
|
delete:
|
|
|
|
operationId: deleteNotification
|
2024-07-09 03:55:35 +02:00
|
|
|
summary: Delete a notification
|
2024-06-23 21:12:10 +02:00
|
|
|
description: Delete the notification by ID and return the notification settings.
|
|
|
|
tags:
|
|
|
|
- Notification
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: Success
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
settings:
|
|
|
|
$ref: '../objects/Notification.yaml#/components/schemas/NotificationSettings'
|
|
|
|
'404':
|
|
|
|
$ref: '#/components/responses/notification404'
|
|
|
|
patch:
|
|
|
|
operationId: updateNotification
|
2024-07-09 03:55:35 +02:00
|
|
|
summary: Update a notification
|
|
|
|
description: Update an individual Notification by ID
|
2024-06-23 21:12:10 +02:00
|
|
|
tags:
|
|
|
|
- Notification
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
libraryId:
|
|
|
|
$ref: '../objects/Library.yaml#/components/schemas/libraryId'
|
|
|
|
eventName:
|
|
|
|
$ref: '../objects/Notification.yaml#/components/schemas/notificationEventName'
|
|
|
|
urls:
|
|
|
|
$ref: '../objects/Notification.yaml#/components/schemas/urls'
|
|
|
|
titleTemplate:
|
|
|
|
$ref: '../objects/Notification.yaml#/components/schemas/titleTemplate'
|
|
|
|
bodyTemplate:
|
|
|
|
$ref: '../objects/Notification.yaml#/components/schemas/bodyTemplate'
|
|
|
|
enabled:
|
|
|
|
$ref: '../objects/Notification.yaml#/components/schemas/enabled'
|
|
|
|
type:
|
|
|
|
$ref: '../objects/Notification.yaml#/components/schemas/notificationType'
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: Success
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
settings:
|
|
|
|
$ref: '../objects/Notification.yaml#/components/schemas/NotificationSettings'
|
|
|
|
'404':
|
|
|
|
$ref: '#/components/responses/notification404'
|
|
|
|
/api/notifications/{id}/test:
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
description: The ID of the notification.
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '../objects/Notification.yaml#/components/schemas/notificationId'
|
|
|
|
get:
|
|
|
|
operationId: sendTestNotification
|
2024-07-09 03:55:35 +02:00
|
|
|
summary: Send a test notification
|
|
|
|
description: Send a test to the given notification by ID.
|
2024-06-23 21:12:10 +02:00
|
|
|
tags:
|
|
|
|
- Notification
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
$ref: '#/components/responses/notification200'
|
|
|
|
'404':
|
|
|
|
$ref: '#/components/responses/notification404'
|