/// <summary>
        /// This method is used to create new schedules.
        /// </summary>
        /// <param name="scheduleid">Schedule Id </param>
        /// <param name="apiScheduleRequest">Schedule details.</param>
        /// <returns>Status of adding schedule in server.</returns>

        public ApiScheduleResponse UpdateSchedule(Guid scheduleid, ApiScheduleRequest apiScheduleRequest)
        {
            var result   = _serverClientV3.Put(apiScheduleRequest, _baseUrl + "/reports/schedule/" + scheduleid);
            var response = new ApiScheduleResponse();

            if (result != null)
            {
                return(JsonConvert.DeserializeObject <ApiScheduleResponse>(result.Content));
            }
            else
            {
                return(response);
            }
        }
        /// <summary>
        /// This method is used to update the existing file into the dashboard server.
        /// </summary>
        /// <param name="apiFileAdd">Item type (category, dashboard, datasource, widget and schedule)</param>
        /// <param name="serverPath">Category path</param>
        /// <returns>List of items for the itemtype.</returns>

        public ApiItemResponse UpdateFile(ApiFileUpdate apiFileAdd)
        {
            var result   = _serverClientV3.Put(apiFileAdd, _baseUrl + "/files");
            var response = new ApiItemResponse();

            if (result != null)
            {
                return(JsonConvert.DeserializeObject <ApiItemResponse>(result.Content));
            }
            else
            {
                return(response);
            }
        }