@@ -50,10 +50,12 @@ def get_projects(self, team_id):
5050 endpoint = '/teams/{}/projects' .format (team_id )
5151 return self ._api_call ('get' , endpoint )
5252
53- def create_project (self , ** kwargs ):
53+ def create_project (self , team_id , ** kwargs ):
5454 """
5555 Create a project.
5656
57+ :Args:
58+ team_id (string): The team id.
5759 :Kwargs:
5860 (optional) kwargs: additional request parameters.
5961
@@ -64,7 +66,8 @@ def create_project(self, **kwargs):
6466 name="My Awesome Project",
6567 )
6668 """
67- return self ._api_call ('post' , '/projects' , payload = kwargs )
69+ endpoint = '/teams/{}/projects' .format (team_id )
70+ return self ._api_call ('post' , endpoint , payload = kwargs )
6871
6972 def get_project (self , project_id ):
7073 """
@@ -160,7 +163,7 @@ def create_comment(self, asset_id, **kwargs):
160163 )
161164 """
162165 endpoint = '/assets/{}/comments' .format (asset_id )
163- return self .api_call ('post' , endpoint , payload = kwargs )
166+ return self ._api_call ('post' , endpoint , payload = kwargs )
164167
165168 def update_comment (self , comment_id , ** kwargs ):
166169 """
@@ -179,7 +182,7 @@ def update_comment(self, comment_id, **kwargs):
179182 )
180183 """
181184 endpoint = '/comments/{}' .format (comment_id )
182- return self .api_call ('post' , endpoint , payload = kwargs )
185+ return self ._api_call ('post' , endpoint , payload = kwargs )
183186
184187 def delete_comment (self , comment_id ):
185188 """
@@ -189,4 +192,4 @@ def delete_comment(self, comment_id):
189192 comment_id (string): The comment id.
190193 """
191194 endpoint = '/comments/{}' .format (comment_id )
192- return self .api_call ('delete' , endpoint )
195+ return self ._api_call ('delete' , endpoint )
0 commit comments