Update the pattern or webhook of an existing inbound mailbox route. If null is provided for any fields, the values will remain unchanged.
Signature
public function updateRoute(string
$id,
[string
$pattern = NULL,
[string
$url = NULL]] )
Parameters
$id
—
string
the unique identifier of an existing mailbox route
$pattern
—
string
the search pattern that the mailbox name should match
$url
—
string
the webhook URL where the inbound messages will be published
Returns
struct
the updated mailbox route information - id string the unique identifier of the route
- pattern string the search pattern that the mailbox name should match
- url string the webhook URL where inbound messages will be published