def update(self, data=values.unset, ttl=values.unset):
data = values.of({'<STR_LIT>': serialize.object(data), '<STR_LIT>': ttl, })<EOL>payload = self._version.update(<EOL>'<STR_LIT:POST>',<EOL>self._uri,<EOL>data=data,<EOL>)<EOL>return DocumentInstance(<EOL>self._version,<EOL>payload,<EOL>service_sid=self._solution['<STR_LIT>'],<EOL>sid=self._solution['<STR_LIT>'],<EOL>)<EOL>
Update the DocumentInstance

:param dict data: Contains an arbitrary JSON object to be stored in this Document.
:param unicode ttl: New time-to-live of this Document in seconds.

:returns: Updated DocumentInstance
:rtype: twilio.rest.sync.v1.service.document.DocumentInstance