'Update the TaskInstance
:param unicode attributes: The attributes
:param TaskInstance.Status assignment_status: The assignment_status
:param unicode reason: The reason
:param unicode priority: The priority
:param unicode task_channel: The task_channel
:returns: Updated TaskInstance
:rtype: twilio.rest.taskrouter.v1.workspace.task.TaskInstance'

def update(self, attributes=values.unset, assignment_status=values.unset, reason=values.unset, priority=values.unset, task_channel=values.unset):

    data = values.of({'Attributes': attributes, 'AssignmentStatus': assignment_status, 'Reason': reason, 'Priority': priority, 'TaskChannel': task_channel})
    payload = self._version.update('POST', self._uri, data=data)
    return TaskInstance(self._version, payload, workspace_sid=self._solution['workspace_sid'], sid=self._solution['sid'])
