Insert a file not working in DocSpace API sample

I tried the DocSpace API sample for “Insert a file” but it doesn’t work
please see attached image for reference.

link to API documentation : Insert a file | ONLYOFFICE

Is there any work around here?

Hello @leoganas
We are checking the situation, I will contact you shortly.

Hello @leoganas
We have found a bug in the described scenario, we have started working on it.
Thank you for pointing us to this situation!