Frame.io old api v2 to v4

piroP
Mon, 23 Mar 2026 19:05:42 +0000
Uncategorized

how do I fix these python functions from the old v2 to api v4?

def frameCrateFolder(frameProject,frameNewFolder):

   from frameioclient import FrameioClient

   TOKEN=("xxxxxxx")

   client = FrameioClient(TOKEN)

   # Create a folder:

   asset = client.assets.create(parent_asset_id=frameProject,,name=frameNewFolder,type="folder")

   return asset



def uploadToFrame(destination_id,fileToUpload):

   from frameioclient import FrameioClient

   TOKEN=("xxxx")

   client = FrameioClient(TOKEN)

   upload=client.assets.upload(destination_id, fileToUpload)

   return upload

4 posts - 3 participants