You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 5 Current »
Requires Authentication?
Yes
Response Formats
json
HTTP Methods
GET
Returns a list of Error Display Agents configuration data.
http://{host}/api/2.0/error_display_notification_agents/.format
http://192.168.0.203/api/2.0/error_display_notification_agents/.json
[ { "ErrorDisplayNotificationAgent": { "id": 1, "title": "ErrorAgent", "decay_after_clear": 20, "min_display_time": 20, "is_remove_static": 0, "is_single_instance": 1, "modified": "1618225794279", "created": "1618225794279" } }, { "ErrorDisplayNotificationAgent": { "id": 2, "title": "errAgent", "decay_after_clear": 20, "min_display_time": 20, "is_remove_static": 0, "is_single_instance": 0, "modified": "1618657904213", "created": "1618657904213" } } ]
Returns a single Error Display Agent configuration data.
http://{host}/api/2.0/error_display_notification_agents/{id}/.format
Parameter
Data Type
Description
id(required)
integer
The ID of the desired Error Display Agent to be viewed.
http://192.168.0.203/api/2.0/error_display_notification_agents/1/.json
{ "ErrorDisplayNotificationAgent": { "id": 1, "title": "ErrorAgent", "decay_after_clear": 20, "min_display_time": 20, "is_remove_static": 0, "is_single_instance": 1, "modified": "1618225794279", "created": "1618225794279" } }
POST
Adds a new Error Display Agent.
Body:
{ "ErrorDisplayNotificationAgent": { "decay_after_clear": "20", "min_display_time": "20", "title": "errAgent" } }
Response:
{ "ErrorDisplayNotificationAgent": { "id": 3, "title": "errAgent1", "decay_after_clear": 20, "min_display_time": 20, "is_remove_static": 0, "is_single_instance": 0, "modified": "1618658511334", "created": "1618658511334" } }
Duplicates a single specific Error Display Agent into a new one, preserving all configuration data except for the title.
The ID of the desired Error Display Agent to be copied.
http://192.168.0.203/api/2.0/error_display_notification_agents/2/.json
{ "ErrorDisplayNotificationAgent": { "id": 4, "title": "errAgent_2", "decay_after_clear": 20, "min_display_time": 20, "is_remove_static": 0, "is_single_instance": 0, "modified": "1618662791973", "created": "1618662791973" } }
PUT
Updates a single specific Error Display Agent configuration data.
The ID of the desired Error Display Agent to be updated.
{ "ErrorDisplayNotificationAgent": { "id": 2, "title": "errAgent", "decay_after_clear": 20, "min_display_time": 20, "is_remove_static": 0, "is_single_instance": 0, "modified": "1618663875037", "created": "1618657904213" } }
DELETE
Deletes a single specific Error Display Agent.
The ID of the desired Error Display Agent to be deleted.
{ "success": true }