/// <summary> /// Update the LDAP mapping for a team on a GitHub Enterprise appliance (must be Site Admin user). /// </summary> /// <remarks> /// https://developer.github.com/v3/enterprise/ldap/#update-ldap-mapping-for-a-team /// </remarks> /// <param name="teamId">The teamId to update LDAP mapping</param> /// <param name="newLdapMapping">The <see cref="NewLdapMapping"/></param> /// <returns>The <see cref="Team"/> object.</returns> public Task <Team> UpdateTeamMapping(int teamId, NewLdapMapping newLdapMapping) { Ensure.ArgumentNotNull(teamId, "teamId"); Ensure.ArgumentNotNull(newLdapMapping, "newLdapMapping"); var endpoint = ApiUrls.EnterpriseLdapTeamMapping(teamId); return(ApiConnection.Patch <Team>(endpoint, newLdapMapping)); }