How to use this "Publish scenario API"?

I really confused and didn’t able to find on how to use this, or simple how I can create a “DRAFT” scenario? Thanks.

image

image

1 Like

Hi @Alvin_M
Based on the documentation, this endpoint is responsible for publishing (Turning ON) an already drafted scenario. It doesn’t create a draft scenario.

Hey @make_expert, thanks for the response.

I believe the “start” scenario api is the one that can turn ON the inactive scenario and the “stop” scenario api is to turn OFF active scenario…

Also I don’t know where or how to have a drafted scenario. :grimacing:

“inactive scenario” is different on “drafted scenario” as I tried to test the “Publish scenario” to execute on an “inactive scenario” and it had an error as what I have attached before. Thanks.

hi @Alvin_M
there is the Create scenario endpoint.
This will create a brand new scenario. You can use the scenarioId to manage it further, e.g. start / stop or publish your scenario.

1 Like

Thanks @zezutom :+1:, maybe this is what needed so the the publish scenario api can be used. :raised_hands:

1 Like