def METHOD_NAME(self, policy_id: int, **kwargs) -> None:
    '''
    Updates an existing scan policy.
    Args:
        policy_id (int): The id of the policy to edit.
        **kwargs (dict): Attributes to be passed into the JSON body.
    Example:
        >>> policy = nessus.policies.details(1)
        >>> policy['settings']['name'] = 'Updated Policy'
        >>> nessus.policies.edit(1, **policy)
    '''
    return self._put(f'{policy_id}', json=kwargs)