Skip to main content
Question

Updates made via Box API SDK not appearing in box.com

  • May 22, 2025
  • 1 reply
  • 35 views

Forum|alt.badge.img

I'm using the .NET SDK to update a file. The code is working without errors, and it returns the updated file in the code, but the updates are not showing on box.com

 

var boxResults = await client.SearchManager.QueryAsync("WAIT_TIMES", fileExtensions: new List<string>() { "json" });
                        var existingFile = boxResults.Entries.FirstOrDefault(x => x.Name == _fileName);

                        if (existingFile != null)
                        {
                            var id = existingFile.Id;
                            var updatedFile = await client.FilesManager.UploadNewVersionAsync(_fileName, id, fileStream);
                        }

 

Again, the above works, but when I look at box.com the file still shows that it was last updated yesterday and the contents are not updated.

1 reply

Forum|alt.badge.img

When you say works - what response are you getting from the box api? 

May I have the client id of the application? 

Alex, Box Developer Advocate