public void Init()
 {
     instance = new FileObject();
 }
     /// <summary>
     ///  Updates an existing file with the specified ID
     /// </summary>
     /// <param name="id">ID of file to update</param> 
     /// <param name="data"></param> 
     /// <returns>FileResponseSingle</returns>            
     public FileResponseSingle EditFile (long? id, FileObject data)
     {
         
         // verify the required parameter 'id' is set
         if (id == null) throw new ApiException(400, "Missing required parameter 'id' when calling EditFile");
         
         // verify the required parameter 'data' is set
         if (data == null) throw new ApiException(400, "Missing required parameter 'data' when calling EditFile");
         
 
         var path = "/files/{id}";
         path = path.Replace("{format}", "json");
         path = path.Replace("{" + "id" + "}", ApiClient.ParameterToString(id));
         
 
         var queryParams = new Dictionary<String, String>();
         var headerParams = new Dictionary<String, String>();
         var formParams = new Dictionary<String, String>();
         var fileParams = new Dictionary<String, FileParameter>();
         String postBody = null;
 
         
         
         
         postBody = ApiClient.Serialize(data); // http body (model) parameter
         
 
         // authentication setting, if any
         String[] authSettings = new String[] { "jwt" };
 
         // make the HTTP request
         IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.PATCH, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
 
         if (((int)response.StatusCode) >= 400)
             throw new ApiException ((int)response.StatusCode, "Error calling EditFile: " + response.Content, response.Content);
         else if (((int)response.StatusCode) == 0)
             throw new ApiException ((int)response.StatusCode, "Error calling EditFile: " + response.ErrorMessage, response.ErrorMessage);
 
         return (FileResponseSingle) ApiClient.Deserialize(response.Content, typeof(FileResponseSingle), response.Headers);
     }