@@ -37,7 +37,7 @@ class Folder(Tidy3DResource, Queryable, extra=Extra.allow):
37
37
)
38
38
39
39
@classmethod
40
- def list (cls , project_endpoint : str = "tidy3d/project " ) -> []:
40
+ def list (cls , project_endpoint : str = "tidy3d/projects " ) -> []:
41
41
"""List all folders.
42
42
43
43
Returns
@@ -56,7 +56,7 @@ def list(cls, project_endpoint: str = "tidy3d/project") -> []:
56
56
)
57
57
58
58
@classmethod
59
- def get (cls , folder_name : str , create : bool = False , project_endpoint : str = "tidy3d/project " ):
59
+ def get (cls , folder_name : str , create : bool = False , project_endpoint : str = "tidy3d/projects " ):
60
60
"""Get folder by name.
61
61
62
62
Parameters
@@ -97,7 +97,7 @@ def create(cls, folder_name: str):
97
97
"""
98
98
return Folder .get (folder_name , True )
99
99
100
- def delete (self , project_endpoint : str = "tidy3d/project " ):
100
+ def delete (self , project_endpoint : str = "tidy3d/projects " ):
101
101
"""Remove this folder."""
102
102
103
103
http .delete (f"{ project_endpoint } /{ self .folder_id } " )
@@ -110,7 +110,7 @@ def delete_old(self, days_old: int) -> int:
110
110
params = {"daysOld" : days_old },
111
111
)
112
112
113
- def list_tasks (self , project_endpoint : str = "tidy3d/project " ) -> list [Tidy3DResource ]:
113
+ def list_tasks (self , project_endpoint : str = "tidy3d/projects " ) -> list [Tidy3DResource ]:
114
114
"""List all tasks in this folder.
115
115
116
116
Returns
@@ -209,7 +209,7 @@ def create(
209
209
simulation_type : str = "tidy3d" ,
210
210
parent_tasks : Optional [list [str ]] = None ,
211
211
file_type : str = "Gz" ,
212
- project_endpoint : str = "tidy3d/project " ,
212
+ project_endpoint : str = "tidy3d/projects " ,
213
213
) -> SimulationTask :
214
214
"""Create a new task on the server.
215
215
0 commit comments