Skip to content

Commit 739bccc

Browse files
Add is_read_only to the attribute
1 parent 8fe92ff commit 739bccc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sdk/diffgram/schema/attribute.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ def update(self,
3636
name = None,
3737
is_global = False,
3838
label_file_list = None,
39-
global_type = 'file'
39+
is_read_only = False,
40+
global_type = 'file',
4041
):
4142
url = f'/api/v1/project/{self.project.project_string_id}/attribute/group/update'
4243
payload = {
@@ -47,7 +48,8 @@ def update(self,
4748
"kind": kind,
4849
"is_global": is_global,
4950
"label_file_list": label_file_list,
50-
"global_type": global_type
51+
"global_type": global_type,
52+
"is_read_only": is_read_only
5153
}
5254

5355
response = self.project.session.post(url = self.project.host + url, json=payload)

0 commit comments

Comments
 (0)