Notifiers¶
Manage webhook / notification channels (create, update, delete, and send test pings).
NotifiersClient
¶
Sub-client for notification-channel (notifier) endpoints.
Accessed via HomeboxClient.notifiers.
Source code in homebox/client.py
1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 | |
__init__
¶
get_notifiers
¶
Return all notification channels configured for the current user.
Returns:
| Type | Description |
|---|---|
list[NotifierOut]
|
list[NotifierOut]: Each notifier includes its ID, name, webhook URL, active flag, and group/user association. |
Source code in homebox/client.py
create_notifier
¶
Create a new notification channel.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
NotifierCreate
|
Notifier creation payload. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
NotifierOut |
NotifierOut
|
Representation of the newly created notifier. |
Source code in homebox/client.py
test_notifier
¶
Send a test notification to the given webhook URL.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
url
|
str
|
Webhook URL to test (does not need to match an existing notifier). |
required |
Source code in homebox/client.py
update_notifier
¶
Replace a notifier's settings with the provided data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
str
|
UUID of the notifier to update. |
required |
data
|
NotifierUpdate
|
Updated notifier payload. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
NotifierOut |
NotifierOut
|
Updated notifier representation. |
Source code in homebox/client.py
delete_notifier
¶
Permanently delete a notification channel.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
str
|
UUID of the notifier to delete. |
required |