api.put_bits: add workarounds for folder-ids not working and returned file-ids format