Routers
- Routers are part of the Advanced Functionality in PagerTree. Please see the routers documentation in-depth details on how to use them.
Property | Type | Description |
---|---|---|
name | string | The name of the router |
enabled | boolean | Boolean indicating if this router is currently enabled. If false, it will just route to the default receiver. |
rules | string | YAML definition of the router. See routers documentation. |
default_receiver_account_user_id | string | |
default_receiver_router_id | string | |
default_receiver_team_id | string |
POST https://api.pagertree.com/api/v4/routers
def router_params
params.permit(
:name,
:enabled,
:rules,
:default_receiver_account_user_id,
:default_receiver_router_id,
:default_receiver_team_id,
)
end
- name
- at least 1 default_receiver
GET https://api.pagertree.com/api/v4/routers/:id
PUT https://api.pagertree.com/api/v4/routers/:id
DELETE https://api.pagertree.com/api/v4/routers/:id
GET https://api.pagertree.com/api/v4/routers
Last modified 5mo ago