Deactivate the tasks from CLI

I am using InfluxDB 2.0 and running many tasks. Now, I want to run few things before running the task. So I want to pause the for some time. I saw in InfluxDB UI there is one option to make tasks inactive for some time and we can make them active after some time but I want the same from CLI.
So, is there any way we can inactive the tasks from CLI?

Hello @Ravikant_Gautam,
I apologize for the delay. Sometimes questions get buried.
Here is the api docs for stopping a task:
Secondly I want to share this resource with you as it pertains to your question in general and might have some interesting bits for you:

Please let me know if you need further assistance!