I would like to add to the scenario its deactivation. To do this, I use the “Make an API call” module.
I have read the API documentation for deactivating a scenario using the POST method in this link. But I didn’t fully figure out what settings to set in the module itself.
What do you mean with The scenario didn't run ?
You want to activate the scenario and execute it? If that’s the case, the scenario won’t automatically run when you activate it.
You can leave the scenario activated and execute it on demand with the following API call https://www.make.com/en/api-documentation/scenarios-scenarioId-run-post
I hope it answers your question.
Glenn - Callinetic
In the link you shared I only see two endpoints. The stop and start endpoints. These won’t execute your scenario. You only change the state from deactivated to activated.
To execute the scenario you should trigger the endpoint I shared in my previous post. That’s /scenarios/{scenarioId}/run.
This means that the logical sequence to execute a stopped scenario is the following:
Start scenario (/scenarios/{scenarioId}/start)
Execute scenario (/scenarios/{scenarioId}/run)
Or for a scenario that is already activated, just run /scenarios/{scenarioId}/run