projectId parameter added to the invite method