Disable email via api

hi all,

I didnt roll with the normal template, as i feel it isnt really relevant to the question.

We run schedualed automatic backups of our zammad environment, and that is working perfectly as expected.

However, i am wanting to know if it is possible to set the email channels to DISABLED via an api or ruby call?

I found a thread to enable maintenance mode via a ruby call, but i know a total of ZERO ruby programming. so im hoping that someone can tell me what to do to enable / disable it.

Thread relating to maintenance mode - Activate maintenance mode via Rails?

Idealy, i would like the plan to be

backup script called → disables email → enable maintenance mode → does backup → when complete enables email and removes maintenance mode → life goes on as normal.

Hi @jbates5873

try this:

POST /api/v1/channels_email_disable

Body:
{"id": [ID of your mail account, for example 2 or 3]}

legend. works perfectly.

Thanks.

1 Like

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.