Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

GET error_display_notification_agents

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

GET

Returns a list of Error Display Agents configuration data.

Resource URL

http://{host}/api/2.0/error_display_notification_agents/.format

Example Request

GET 

  1. 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"
        }
    }
]

 


 

GET error_display_notification_agents/{id}

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

GET

Returns a single Error Display Agent configuration data.

Resource URL

http://{host}/api/2.0/error_display_notification_agents/{id}/.format

Parameters

Parameter

Data Type

Description

id
(required)

integer

The ID of the desired Error Display Agent to be viewed.

Example Request

GET 

  1. 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 error_display_notification_agents

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

POST

Adds a new Error Display Agent.

Resource URL

http://{host}/api/2.0/error_display_notification_agents/.format

Example Request

POST 

  1. http://192.168.0.203/api/2.0/error_display_notification_agents/.json

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"
    }
}

 


 

POST error_display_notification_agents/{id}

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

POST

Duplicates a single specific Error Display Agent into a new one, preserving all configuration data except for the title.

Resource URL

http://{host}/api/2.0/error_display_notification_agents/{id}/.format

Parameters

Parameter

Data Type

Description

id
(required)

integer

The ID of the desired Error Display Agent to be copied.

Example Request

POST 

  1. 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 error_display_notification_agents/{id}

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

PUT

Updates a single specific Error Display Agent configuration data.

Resource URL

http://{host}/api/2.0/error_display_notification_agents/{id}/.format

Parameters

Parameter

Data Type

Description

id
(required)

integer

The ID of the desired Error Display Agent to be updated.

Example Request

PUT 

  1. http://192.168.0.203/api/2.0/error_display_notification_agents/2/.json

Body:

{
    "ErrorDisplayNotificationAgent": {
        "decay_after_clear": "20",
        "min_display_time": "20",
        "title": "errAgent"
    }
}

Response:

{
    "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 error_display_notification_agents/{id}

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

DELETE

Deletes a single specific Error Display Agent.

Resource URL

http://{host}/api/2.0/error_display_notification_agents/{id}/.format

Parameters

Parameter

Data Type

Description

id
(required)

integer

The ID of the desired Error Display Agent to be deleted.

Example Request

DELETE 

  1. http://192.168.0.203/api/2.0/error_display_notification_agents/2/.json

{
    "success": true
}
  • No labels