I was trying to get the API to perform the process of adding a schedule for a newly created playlist.
(I am using “/api/schedule”).
The information I POSTed at that time is as follows
$example_postData = [
‘eventTypeId’ => 1,
‘displayOrder’ => 0,
‘isPriority’ => 0,
‘displayGroupIds’ => [1],
‘fromDt’ => ‘2025-04-01 00:00:00’,
‘toDt’ => ‘2025-04-01 23:59:59’
];
When I let it run, it returned the following.
{“error”:422, “message”: “Please select a campaign/layout for this event.” , “property”: “campaignId”, “help”:null}
I would like to be able to use the API to set up a schedule for each playlist in the CMS.
Can you tell me what I need to do to complete the process of adding a schedule, including how to specify the playlists?