Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 841 Bytes

files.md

File metadata and controls

45 lines (30 loc) · 841 Bytes

Files

Before that setup the default client, or will inject your own client.

Upload Files

Upload one or more Files, which can then be associated to a Story Description, Story Comment, or Epic Comment.

new_file = {'file' : 'D:/112.py'}
file = await club_house.files.upload(**new_file)

Updating

id_file = 117
update_fields = {'name': 'New file name', 'description': 'new desc'}
file = await club_house.files.update(id_file, **update_fields)

Get by id

id_file = 117
file = await club_house.files.get(id_file)

Deleting by id

When None is returned this means it was successfull

id_file = 117
await club_house.files.delete(id_file)

Listing

Returns a list of all files

files = await club_house.files()