set Map Item With Ttl
abstract suspend fun setMapItemWithTtl(mapSidOrUniqueName: String, itemKey: String, itemData: <Error class: unknown class>, ttl: <Error class: unknown class>): SyncMap.Item
Set Item in the SyncMap without opening it.
Return
SyncMap.Item which has been set.
Parameters
map Sid Or Unique Name
SID or unique name of existing SyncMap.
item Key
Key of the item to set.
item Data
Item data to set as a JsonObject.
ttl
Time to live from now or Duration.INFINITE to indicate no expiry.
Throws
Twilio Exception
When error occurred while setting the Item.