set List Item With Ttl
inline suspend fun <T : Any> Lists.setListItemWithTtl(listSidOrUniqueName: String, itemIndex: Long, itemData: T, ttl: <Error class: unknown class>): SyncList.Item
Serializes the given value into an equivalent JsonObject using a serializer retrieved from reified type parameter and set it as value of the SyncList.Item.
Type T must be annotated with @Serializable.
Return
SyncList.Item which has been set.
Parameters
list Sid Or Unique Name
SID or unique name of existing SyncList.
item Index
Index of the item to set.
item Data
Item data to set.
ttl
Time to live from now or Duration.INFINITE to indicate no expiry.
Throws
Serialization Exception
If the itemData value cannot be serialized to JSON object.
Twilio Exception
When error occurred while updating the item.