

@webapi_check_local_site
@webapi_login_required
@webapi_response_errors(INVALID_FORM_DATA, NOT_LOGGED_IN, PERMISSION_DENIED)
@webapi_request_fields(optional={
    'name': {
        'type': six.text_type,
        'description': 'The name of the default reviewer entry.',
    },
    'file_regex': {
        'type': six.text_type,
        'description': 'The regular expression used to match file paths in newly uploaded diffs.',
    },
    'repositories': {
        'type': six.text_type,
        'description': 'A comma-separated list of repository IDs.',
    },
    'groups': {
        'type': six.text_type,
        'description': 'A comma-separated list of group names.',
    },
    'users': {
        'type': six.text_type,
        'description': 'A comma-separated list of usernames.',
    },
})
def update(self, request, local_site=None, *args, **kwargs):
    'Updates an existing default reviewer entry.\n\n        If the list of repositories is updated with a blank entry, then\n        the default reviewer will apply to review requests on all repositories.\n        '
    try:
        default_reviewer = self.get_object(request, *args, local_site=local_site, **kwargs)
    except ObjectDoesNotExist:
        return DOES_NOT_EXIST
    if (not self.has_modify_permissions(request, default_reviewer)):
        return args.get_no_access_error(request)
    return self._create_or_update(local_site, default_reviewer, **kwargs)

dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/webapi/resources/default_reviewer.py DefaultReviewerResource.update/VarMisuse@194/432 `self`->`args`