Jump to content

Adding metadata on creation


tokejepsen

Recommended Posts

Here is a bit of code to illustrate:

assetversion_data = {
"version": 0,
"asset": asset_entity,
"task": task,
"metadata": {"something": "cool"}
}

assetversion_entity = session.create(
"AssetVersion", assetversion_data
)
print assetversion_entity
session.commit()

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...