---
title: "Script triggers defined in the <span class=\"fr-alt\" title=\"You can edit the router configuration over REST at the config/router endpoint.\">router configuration</span>"
description: "The router service provides the uniform interface to all IDM objects: managed objects, system objects, configuration objects, and so on."
component: pingoneaic
page_id: pingoneaic:idm-scripting:script-triggers-routerConfig
canonical_url: https://docs.pingidentity.com/pingoneaic/idm-scripting/script-triggers-routerConfig.html
---

# Script triggers defined in the router configuration *(tooltip: You can edit the router configuration over REST at the config/router endpoint.)*

The router service provides the uniform interface to all IDM objects: managed objects, system objects, configuration objects, and so on.

| Trigger      | Variable  |
| ------------ | --------- |
| `onFailure`  | exception |
| `onRequest`  | request   |
| `onResponse` | response  |

For more information, refer to [Router configuration](router-config.html).
