API to change Data Retention period of Immutable device

API to change Data Retention period of Immutable device

Hi,

I could not able to find the methods which allow to edit the data retention period of device in Resources.devices.As we cannot use account.buckets, it would be great if you indicate me the API which allow us to perform this functionality.

Thank you