startDate/endDate with user session


I’m trying to create a new entry through Kaltura’s API and it’s working as expected for the most part.

But if I want to create an entry with a startDate / endDate (scheduling) using a user ks I’m getting the following error.

The property “startDate” is updatable with admin session only

My question is why can’t we create a scheduled entry with a user ks ? I’m trying to avoid using admin ks for security purposes.

I can easily avoid this by commenting some lines in “/opt/kaltura/app/api_v3/lib/KalturaEntryService.php”, but I don’t want to make that king of alteration on the server files. So is there a way to use scheduling with a user session ?

Many thanks.

Hi @luca.guindani,

It was decided by our Product team that the scheduling feature should only be made available with an ADMIN KS.
You can comment out:

                if ($entry->startDate !== null)
                if  ($entry->endDate !== null)

In /opt/kaltura/app/api_v3/lib/KalturaEntryService.php if you wish to allow it with a USER KS but note you’ll have to repatch it when upgrading.

Hi @jess

Thanks for your answer.

Alright, if there’s no other way to do it, I’ll comment the lines in the KalturaEntryService.php file.