After upgrading from 2018.8.9 to 2019.3.4 in our test environment, our automation of project setup breaks.
More specifically, it seems like the property Octopus.Client.Model.TeamResource.ProjectIds has been removed? What is the new (and backward compatible) way of connecting a team to a project?
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 ProjectIds collection.
I hope that helps. Please reach out if we can provide more information.