/// <summary> /// Returns updated <see cref="Team" /> for the current org. /// </summary> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <returns>Updated <see cref="Team"/></returns> public Task<Team> UpdateTeam(int id, UpdateTeam team) { Ensure.ArgumentNotNull(team, "team"); var endpoint = ApiUrls.TeamsUpdateOrDelete(id); return ApiConnection.Patch<Team>(endpoint, team); }
/// <summary> /// Returns updated <see cref="Team" /> for the current org. /// </summary> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <returns>Updated <see cref="Team"/></returns> public Task<Team> UpdateTeam(int id, UpdateTeam team) { Ensure.ArgumentNotNull(team, "team"); var endpoint = "teams/{0}".FormatUri(id); return ApiConnection.Patch<Team>(endpoint, team); }
/// <summary> /// Returns updated <see cref="Team" /> for the current org. /// </summary> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <returns>Updated <see cref="Team"/></returns> public Task <Team> Update(int id, UpdateTeam team) { Ensure.ArgumentNotNull(team, "team"); var endpoint = ApiUrls.Teams(id); return(ApiConnection.Patch <Team>(endpoint, team)); }
/// <summary> /// Returns updated <see cref="Team" /> for the current org. /// </summary> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <returns>Updated <see cref="Team"/></returns> public Task <Team> Update(int id, UpdateTeam team) { Ensure.ArgumentNotNull(team, nameof(team)); var endpoint = ApiUrls.Teams(id); return(ApiConnection.Patch <Team>(endpoint, team, AcceptHeaders.NestedTeamsPreview)); }