File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -2534,6 +2534,19 @@ Copy a project.
25342534project_id = client.copy_project(project_id = " YOUR_PROJECT_ID" )
25352535```
25362536
2537+ ### Update Project Metadata
2538+
2539+ Update a project metadata.
2540+
2541+ ``` python
2542+ project_metadata_id = client.update_project_metadata(
2543+ project_id = " YOUR_PROJECT_ID" ,
2544+ external_code_1 = " ExternalCode1" ,
2545+ external_code_2 = " ExternalCode2" ,
2546+ external_code_3 = None
2547+ )
2548+ ```
2549+
25372550## Tags
25382551
25392552### Get Tags
Original file line number Diff line number Diff line change @@ -4113,6 +4113,30 @@ def copy_project(self, project_id: str) -> None:
41134113 endpoint = "projects/copy"
41144114 return self .api .post_request (endpoint , payload = payload )
41154115
4116+ def update_project_metadata (
4117+ self ,
4118+ project_id : str ,
4119+ external_code_1 : Optional [str ],
4120+ external_code_2 : Optional [str ],
4121+ external_code_3 : Optional [str ],
4122+ ) -> str :
4123+ """
4124+ Update project metadata.
4125+
4126+ project_id is an id of the project (Required).
4127+ external_code_1 is a code for external identification.
4128+ external_code_2 is a code for external identification.
4129+ external_code_3 is a code for external identification.
4130+
4131+ """
4132+ endpoint = "projects/" + project_id + "/metadata"
4133+ payload = {
4134+ "externalCode1" : external_code_1 ,
4135+ "externalCode2" : external_code_2 ,
4136+ "externalCode3" : external_code_3 ,
4137+ }
4138+ return self .api .put_request (endpoint , payload = payload )
4139+
41164140 # Tags
41174141
41184142 def get_tags (
You can’t perform that action at this time.
0 commit comments