add a putfile api method

for now allows overwriting (editing) existing files