Validityperiod option in API call

Has anybody had any success in setting the validityperiod option on the updateshare API? I have attempted to format the date in several different ways, mirroring the output of this option on the response from getting the properties of another folder.

It either creates and “invalid” share (red share icon) or it does not allow me to modify the share settings after updated.


This can be done using this POST parameters: