Redirect

transfer control to another JSON document that is retrieved from the specified url

All actions after redirect are unreachable and ignored.

1{
2 "verb": "redirect",
3 "actionHook": "/connectToSales",
4 "statusHook": "https://example.com/newStatus"
5}

Parameters

actionHook
stringRequired

URL of webhook to retrieve a new application from.

statusHook
string

URL of webhook to send status messages to

Where the actionHook url is a full url eg https://example.com/connectToSales Jambonz will update the base URL used for the call so any futher actionHooks that contain relative urls will use the new base.

If the statusHook is updated then the previous endpoint will not recieve any further events, like the actionHook this can be a relative path or a full URL