public async Task UpdateVariable(Variable variable) { var uri = $"{Context.OpisenseApiUrl}sources/{variable.SourceId}/variables/{variable.Id}"; SendFeedback($" => Updating variable <{variable.Id}/{variable.Name}> on <{uri}>: {JsonConvert.SerializeObject(variable)}"); if (Context.WhatIf) { return; } await Client.SendAsync(uri, HttpMethod.Put, variable); }