I’m using API to set a schedule for my cms. When I set a fromDt and dayPartId:1 without assigning toDt, I receive an error:
“message”: “Can not have an end time earlier than your start time”,
and when I assign toDt, the dayPartId:1 doesn’t affect my schedule.
If you’re using the “always” day part you shouldn’t need to provide date at all. Can you call the /daypart end point to make sure the always day part has the ID you’re expecting (its not always 1).
According to api documentation of adding a new schedule, if I put dayPartId value to 1 it will be day part always.
And API forces me to set fromDt as a required field and as I said before, it gave me an error if I don’t set a value for toDt.
that is certainly the easiest way, if you already have an access token - if not the only other way is to view the day part page in the CMS with dev tools open on the Network tab and inspect the XHR request.