Notification Messages
Operations Summary
| Method | Endpoint | Description |
|---|---|---|
| Core CRUD | ||
| GET | /api/notification-messages/ |
List Notification Messages |
| GET | /api/notification-messages/{uuid}/ |
Retrieve |
| POST | /api/notification-messages/ |
Create |
| PUT | /api/notification-messages/{uuid}/ |
Update |
| PATCH | /api/notification-messages/{uuid}/ |
Partial Update |
| DELETE | /api/notification-messages/{uuid}/ |
Delete |
| Other Actions | ||
| POST | /api/notification-messages/{uuid}/disable/ |
Disable a notification |
| POST | /api/notification-messages/{uuid}/enable/ |
Enable a notification |
Core CRUD
List Notification Messages
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 | |
- API Source:
notification_messages_list
1 2 3 4 5 6 7 8 9 10 | |
| Name | Type | Description |
|---|---|---|
description |
string | |
is_overridden |
boolean | |
key |
string | |
name |
string | |
name_exact |
string | |
page |
integer | A page number within the paginated result set. |
page_size |
integer | Number of results to return per page. |
query |
string | Filter by key or description |
200 -
The response body is an array of objects, where each object has the following structure:
| Field | Type | Description |
|---|---|---|
uuid |
string (uuid) | |
url |
string (uri) | |
key |
string | |
description |
string | |
enabled |
boolean | Indicates if notification is enabled or disabled |
created |
string (date-time) | |
templates |
array of objects | |
templates.uuid |
string (uuid) | |
templates.url |
string (uri) | |
templates.path |
string | Example: 'flatpages/default.html' |
templates.name |
string | |
templates.content |
string | |
templates.original_content |
string | |
templates.is_content_overridden |
boolean | |
context_schema |
object (free-form) | Finds the notification definition in the global NOTIFICATIONS dictionary and returns its 'context' schema. |
Retrieve
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
notification_messages_retrieve
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 -
| Field | Type | Description |
|---|---|---|
uuid |
string (uuid) | |
url |
string (uri) | |
key |
string | |
description |
string | |
enabled |
boolean | Indicates if notification is enabled or disabled |
created |
string (date-time) | |
templates |
array of objects | |
templates.uuid |
string (uuid) | |
templates.url |
string (uri) | |
templates.path |
string | Example: 'flatpages/default.html' |
templates.name |
string | |
templates.content |
string | |
templates.original_content |
string | |
templates.is_content_overridden |
boolean | |
context_schema |
object (free-form) | Finds the notification definition in the global NOTIFICATIONS dictionary and returns its 'context' schema. |
Create
1 2 3 4 5 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |
- Model Source:
NotificationRequest - API Source:
notification_messages_create
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Field | Type | Required |
|---|---|---|
key |
string | ✓ |
description |
string |
201 -
| Field | Type | Description |
|---|---|---|
uuid |
string (uuid) | |
url |
string (uri) | |
key |
string | |
description |
string | |
enabled |
boolean | Indicates if notification is enabled or disabled |
created |
string (date-time) | |
templates |
array of objects | |
templates.uuid |
string (uuid) | |
templates.url |
string (uri) | |
templates.path |
string | Example: 'flatpages/default.html' |
templates.name |
string | |
templates.content |
string | |
templates.original_content |
string | |
templates.is_content_overridden |
boolean | |
context_schema |
object (free-form) | Finds the notification definition in the global NOTIFICATIONS dictionary and returns its 'context' schema. |
Update
1 2 3 4 5 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
- Model Source:
NotificationRequest - API Source:
notification_messages_update
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required |
|---|---|---|
key |
string | ✓ |
description |
string |
200 -
| Field | Type | Description |
|---|---|---|
uuid |
string (uuid) | |
url |
string (uri) | |
key |
string | |
description |
string | |
enabled |
boolean | Indicates if notification is enabled or disabled |
created |
string (date-time) | |
templates |
array of objects | |
templates.uuid |
string (uuid) | |
templates.url |
string (uri) | |
templates.path |
string | Example: 'flatpages/default.html' |
templates.name |
string | |
templates.content |
string | |
templates.original_content |
string | |
templates.is_content_overridden |
boolean | |
context_schema |
object (free-form) | Finds the notification definition in the global NOTIFICATIONS dictionary and returns its 'context' schema. |
Partial Update
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
- Model Source:
PatchedNotificationRequest - API Source:
notification_messages_partial_update
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required |
|---|---|---|
key |
string | |
description |
string |
200 -
| Field | Type | Description |
|---|---|---|
uuid |
string (uuid) | |
url |
string (uri) | |
key |
string | |
description |
string | |
enabled |
boolean | Indicates if notification is enabled or disabled |
created |
string (date-time) | |
templates |
array of objects | |
templates.uuid |
string (uuid) | |
templates.url |
string (uri) | |
templates.path |
string | Example: 'flatpages/default.html' |
templates.name |
string | |
templates.content |
string | |
templates.original_content |
string | |
templates.is_content_overridden |
boolean | |
context_schema |
object (free-form) | Finds the notification definition in the global NOTIFICATIONS dictionary and returns its 'context' schema. |
Delete
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
notification_messages_destroy
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
204 - No response body
Other Actions
Disable a notification
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
notification_messages_disable
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 - No response body
Enable a notification
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
notification_messages_enable
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 - No response body