Assign manager in Azure AD snaps

By Microsoft documentation

to assign a manager to a user you need to call a different api. Have someone managed to figure this out, how to use Azure Active Directory snaps?