public static bool Update(string subscriptionKey, string hostURI, Guid modelId, string description, Guid?projectId) { if (string.IsNullOrEmpty(description) && projectId == null) { Console.WriteLine("Nothing to update"); return(true); } string url = string.Format(CultureInfo.InvariantCulture, hostURI + API_V3.VoiceModels_Update, modelId); var payload = UpdateDefinition.Create(null, description, projectId); var response = APIHelper.Patch(subscriptionKey, url, payload); if (!response.IsSuccessStatusCode) { APIHelper.PrintErrorMessage(response); return(false); } return(true); }