updateDocumentWithTtl

abstract suspend fun updateDocumentWithTtl(sidOrUniqueName: String, data: <Error class: unknown class>, ttl: <Error class: unknown class>)

Set value of the SyncDocument as a JSON object without opening it.

Parameters

sidOrUniqueName

SID or unique name of existing SyncDocument.

data

New document data.

ttl

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

Throws

TwilioException

When error occurred while updating the document.