How To Update an Alias Via the API?

I was just looking at this last night, trying to wire up my admin to talk directly to the MAIB API

If you glance at the form data being submitted in the MAIB admin, you’ll see the following:

address : <email>
forwards_to : <email>
update_if_exists : 1
permitted_senders :  ''

To add an alias, set update_if_exists to 0
When updating an alias, set update_if_exists to 1

You’ll post to /admin/mail/aliases/add when you add or update an alias.

Try that, LMK if that works for you. I’ve only done some preliminary testing since last night.

1 Like