def update(self, permission):
data = values.of({'<STR_LIT>': serialize.map(permission, lambda e: e), })<EOL>payload = self._version.update(<EOL>'<STR_LIT:POST>',<EOL>self._uri,<EOL>data=data,<EOL>)<EOL>return RoleInstance(<EOL>self._version,<EOL>payload,<EOL>service_sid=self._solution['<STR_LIT>'],<EOL>sid=self._solution['<STR_LIT>'],<EOL>)<EOL>
Update the RoleInstance

:param unicode permission: A permission the role should have

:returns: Updated RoleInstance
:rtype: twilio.rest.chat.v2.service.role.RoleInstance