Skip to main content
Aria Knowledge Central

unsubscribe_events_m Sample Call and Response

This example shows a client unsubscribing from a specific group of individual event notifications, based on the unsubscribe_events_m method defined in plsql_m_r73.yml.

This example covers unsubscribing from a list of specific event IDs. It does not cover unsubscribe_event_class_m, which unsubscribes a client from an entire event class rather than from selected individual events.

Sample call

{
    "rest_call": "unsubscribe_events_m",
    "output_format": "json",
    "client_no": 4471,
    "auth_key": "b92f6e1c8a3d4f0e9b7c2a1d5e6f8091",
    "event_list": [501, 503, 507]
}

The rest_call and output_format fields form the envelope added by the REST layer; they are not part of the method's own argument list in the yml. The event_list field is required and, in the yml, the array wrapper and its individual item are both named event_list; this example represents that as a flat JSON array of the Aria-assigned event IDs from which the client wants to unsubscribe. This example unsubscribes from three individual events; a real call could include any number of event IDs.

Sample response

{
    "error_code": 0,
    "error_msg": "OK"
}

An error_code of zero with an error_msg of "OK" indicates that the client was successfully unsubscribed from all of the listed events. This example leaves out the error_details field, since that field is internal to Aria and is not returned to callers.

TOP
  • Was this article helpful?