Skip to main content

Update An email Notifier

Update an email notifier

HTTP Request

PATCH/api/notifications/notifiers/email/:id

Authorization

Authorization

  • Required: Yes
  • Permission: Staff with EmailNotifierPermission or Admin
  • Permission Code: 2833
  • Authentication: Token-based (Authorization: Token <your_api_key>)

Path Parameters

ParameterTypeRequiredDescription
idIntegerYesUnique ID of the email notifier to update

Request Body

FieldTypeRequiredDescription
nameStringYesName of the email notifier
hostStringYesHost name of the email notifier
portIntegerNoPort number of the email notifier
usernameStringYesUsername of the email notifier
passwordStringYesPassword of the email notifier
from_emailStringYesSending email address of the notifier
use_tlsBooleanNoWhether using tls or not (default=true)
use_sslBooleanNoWhether using ssl or not (default=false)
fail_sientlyBooleanNoWhether failing silently or not (default=false

Example Requests

1import requests
2response = requests.post('http://www.example.com/api/notifications/notifiers/email/49', json={
3  "name": "some edited name"
4})
5print(response.json())

Response Fields

FieldTypeDescription
idIntegerUnique ID of the email notifier.
nameStringName of the email notifier
hostStringHost name of the email notifier
portIntegerPort number of the email notifier
usernameStringUsername of the email notifier
passwordStringPassword of the email notifier
from_emailStringSender email address of the email notifier
use_tlsBooleanWhether the email notifier use tls or not
use_sslBooleanWhether the email notifier use ssl or not
fail_silentlyBooleanWhether the email notifier will fail silently in case of error
created_atString (ISO 8601)Timestamp when the email notifier was created.
updated_atString (ISO 8601)Timestamp when the email notifier was last updated.

Response Example

{
"id": 8,
"name": "hamgam_mail_edited",
"host": "mail.hamgam.online",
"port": 887,
"username": "info",
"password": "somepassword",
"from_email": "info@hamgam.online",
"use_tls": true,
"use_ssl": true,
"fail_silently": false,
"created_at": "2025-12-28T17:43:38.130046Z",
"updated_at": "2025-12-28T17:52:56.081474Z"
}