<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def put(self):
 """ Save changes made to the object to DocumentCloud. According to DocumentCloud's docs, edits are allowed for the following fields: * title * source * description * related_article * access * published_url * data key/value pairs Returns nothing. """

        params = dict(
            title=self.title or '',
            source=self.source or '',
            description=self.description or '',
            related_article=self.resources.related_article or '',
            published_url=self.resources.published_url or '',
            access=self.access,
            data=self.data,
        )
        self._connection.put('documents/%s.json' % self.id, params)