def METHOD_NAME(self,
           profile_id: str,
           **kwargs
           ) -> Dict:
    '''
    Update an existing profile
    Args:
        profile_id (str):
            The profile instance identifier.
        name (optional, str):
            The name of profile.
        deleted (optional, bool):
            is the profile deleted?
        directories (optional, List[int]):
            The list of directory ids.
    Returns:
        dict:
            The updated profile object.
    Examples:
        >>> tad.profiles.update(
        ...     profile_id='1',
        ...     name='EDITED'
        ...     )
    '''
    payload = self._schema.dump(self._schema.load(kwargs))
    return self._schema.load(self._patch(f"{profile_id}", json=payload))