Is there a way to set the Project Template via the Python API?

Hi there, I was wondering, is there a way to set the project Template via the Python API?

3 Likes

Yes, there is a way.

  • What you need to do is to specify the Project.layout_project field when creating via API:
project = sg.find("Project", [["id","is",78]])
sg.create('Project', {'name':'New Project', 'layout_project':project})

Cheers, :slight_smile:

4 Likes