R1Soft php scripting variable setting

I am trying to create automatization for R1Soft so that when we deploy a new server SALT or RunDeck will automatically add standard settings to R1Soft and create agent on the newly deployed system and add it to the protected machine in R1Soft Backup Manager Server side.
Nearly all of it is done.

I need to add one last thing in “SelfManaged.php” so that in my policy settings I can make “local retention” “keep” settings as I want
Values are Hourly X, Daily X, Weekly X, Monthly X, Yearly X
But these are the values on the screen, not the values in “SelfManaged.php”. Checked nearly all the documentation and could not find these values to set.

Can anyone give me some examples of PHP script for R1Soft in regards to this point?