setListItemWithTtl

abstract suspend fun setListItemWithTtl(listSidOrUniqueName: String, itemIndex: Long, itemData: <Error class: unknown class>, ttl: <Error class: unknown class>): SyncList.Item

Set Item in the SyncList without opening it.

Return

SyncList.Item which has been set.

Parameters

listSidOrUniqueName

SID or unique name of existing SyncList.

itemIndex

Index of the item to set.

itemData

Item data to set as a JsonObject.

ttl

Time to live from now or Duration.INFINITE to indicate no expiry.

Throws

TwilioException

When error occurred while setting the Item.