Update Types of Asset Build/Milestone in schema through ftrack-python-api
2 2

2 posts in this topic

Hi all,

How can I update the Types of Asset Build and Milestone in schema using the ftrack-python-api?

For example I can update the Types for Task in schema using the ftrack-python-api:

session = ftrack_api.Session()
schema = session.query("ProjectSchema where name is '%s'" % (name))
schema['_task_type_schema']['types'].append(task_type)
session.commit()

Cheers!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
2 2