Skip to content

Commit 9b426d9

Browse files
committed
WIP move_asset()
1 parent 8a7a018 commit 9b426d9

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
@@ -193,6 +193,25 @@ def get_asset_children(self, asset_id, **kwargs):
193193
endpoint = '/assets/{}/children'.format(asset_id)
194194
return self._api_call('get', endpoint, kwargs)
195195

196+
def move_asset(self, destination_folder, id)
197+
"""
198+
Move an asset.
199+
200+
:Args:
201+
asset_id (string): The asset you're trying to move.
202+
:Kwargs:
203+
destination_folder (string): The destination folder you're moving the file into
204+
205+
Example::
206+
207+
client.move_asset(
208+
destination_folder="123abc",
209+
id="123abc",
210+
)
211+
"""
212+
endpoint = '/assets/{}/children'.format(destination_folder)
213+
return self._api_call('post', endpoint, payload=kwargs)
214+
196215
def create_asset(self, parent_asset_id, **kwargs):
197216
"""
198217
Create an asset.

0 commit comments

Comments
 (0)