Skip to content

Commit 2748850

Browse files
committed
WIP move_asset()
1 parent 03f6d52 commit 2748850

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

frameioclient/client.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,25 @@ def get_asset_children(self, asset_id, **kwargs):
219219
endpoint = '/assets/{}/children'.format(asset_id)
220220
return self._api_call('get', endpoint, kwargs)
221221

222+
def move_asset(self, destination_folder, id)
223+
"""
224+
Move an asset.
225+
226+
:Args:
227+
asset_id (string): The asset you're trying to move.
228+
:Kwargs:
229+
destination_folder (string): The destination folder you're moving the file into
230+
231+
Example::
232+
233+
client.move_asset(
234+
destination_folder="123abc",
235+
id="123abc",
236+
)
237+
"""
238+
endpoint = '/assets/{}/children'.format(destination_folder)
239+
return self._api_call('post', endpoint, payload=kwargs)
240+
222241
def create_asset(self, parent_asset_id, **kwargs):
223242
"""
224243
Create an asset.

0 commit comments

Comments
 (0)