Update A email Notifier Pattern
Update a email notifier pattern
HTTP Request
PATCH/api/notifications/notifiers/email/:email_notifier_id/patterns/:id
Authorization
Authorization
- Required: Yes
- Permission: Staff with EmailPatternsPermission or Admin
- Permission Code: 2843
- Authentication: Token-based (Authorization: Token <your_api_key>)
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| email_notifier_id | Integer | Yes | Unique ID of the email notifier |
| id | Integer | Yes | Unique ID of the email notifier pattern |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | String | No | Name of the email notifier pattern (unique over the specific email notifier) |
| description | String | No | Extra description about the email notifier pattern |
| from_email | String | No | from_email address |
| subject | String | No | The subject field of the email |
| body_text | String | No | The text body of the email pattern |
| body_html | String | No | The html body of the email pattern |
Example Requests
- 🐍 Python
- 🌐 Curl
1import requests
2
3# Updates email notifier pattern
4response = requests.post('http://www.example.com/api/notifications/notifiers/email/1/patterns/9',
5 json={
6 "subject": "your order status changed"
7 },
8 headers={'Authorization': 'Token <your_api_key>'}
9)
10print(response.json())1# Updates email notifier pattern
2curl -X POST "http://www.example.com/api/notifications/notifiers/email/1/patterns/7" \
3-H "Authorization: Token <your_api_key>" \
4-H "Content-Type: application/json" \
5-d '{
6 "subject": "Your Order Status Changed"
7}'Response Fields
| Field | Type | Description |
|---|---|---|
| id | Integer | Unique ID of the email pattern. |
| name | String | Name of the email pattern (unique over the specific email notifier) |
| description | String | Extra descrtiption of the email pattern (nullable) |
| from_email | String | from email of the pattern (nullable) |
| subject | String | Subject of the email |
| body_text | String | Text body of the email pattern |
| body_html | String | Html body of the email pattern (nullable) |
| created_at | String (ISO 8601) | Timestamp when the email pattern was created. |
| updated_at | String (ISO 8601) | Timestamp when the email pattern was last updated. |
Response Example
{
{
"id": 3,
"name": "order_status_changed",
"description": "used for sending status changes",
"from_email": "info@hamgam.online",
"subject": "Your Order Status Changed",
"body_text": "Order number {0} is in {1} status",
"body_html": null,
"created_at": "2025-12-28T18:14:22.251792Z",
"updated_at": "2025-12-28T18:19:02.335166Z"
}
}