You’re correct, with the introduction of Spaces in 2019.1 we made some breaking changes to the teams API. You can see some details in the breaking changes section of the release notes.
The scopes (projects, environments, etc) which were previously applied to teams have been moved to the roles which belong to a team. This allows teams in Octopus to better represent real-world teams.
The specific class you are looking for is
ScopedUserRoleResource. This class has a
TeamId property and a
UserRoleId property which links a team to it’s roles. It also contains a
I hope that helps. Please reach out if we can provide more information.