Api create scenario with a schedule

Hi,

I cannot find documentation on how to pass the schedule when creating a scenario via api. I’m trying to create a weekly, thur, 1:18 pm schedule and make the scenario active. I can create it and name it but i can’t seem to schedule it correctly.

TIA,
Dennis

Hello @Dennis_Willis,
This is the only thing that I’ve found on Make API documentation.
Check it, if it helps you.

https://developers.make.com/api-runner/make/api-documentation/api-reference/scenarios/create-scenario

:+1:

Thanks Delip. That document has only one example:
“scheduling”: “{ "type": "indefinitely", "interval": 900 }”,

So it is not much help, after having to test to see what works I came up with this:
{
“days”: [
3
],
“time”: “11:30”,
“type”: “weekly”
}

Which works, now I’m trying to create a function that creates valid make schedule strings from schedule data. Pain in the ass there is no doc’s with examples and rules.

Thanks,
Dennis

I have the same problem.

If I would like to map “Days” in API create scenario I don’t know how to preapre it.

What I have determined is only that:

When a scenario is created without the map function, we have:

In “days” we should have number without " " abd in array.

Can someone explain how to do that?

“schedule” not “scheduling” works for me.