Create assemblyReference using python cmds

Hi guys! im trying to use python cmds to load an assemblyReference from an input but so far i can only get an assemblyDefinition

cmds.assembly(myAssembly, edit=True, createRepresentation=‘Scene’, input=ref_file)

i want to create that ref by code if possible maybe someone can help :slightly_smiling_face: thanks

ok so i found how to do it just in case someone wonder how to

myAssembly = cm.assembly(name=name, type=‘assemblyReference’)
cm.setAttr(myAssembly + “.definition”, path, type=“string”)