@@ -1184,8 +1184,8 @@ class GroupVariableManager(CRUDMixin, RESTManager):
11841184 _path = "/groups/%(group_id)s/variables"
11851185 _obj_cls = GroupVariable
11861186 _from_parent_attrs = {"group_id" : "id" }
1187- _create_attrs = (("key" , "value" ), ("protected" ,))
1188- _update_attrs = (("key" , "value" ), ("protected" ,))
1187+ _create_attrs = (("key" , "value" ), ("protected" , "variable_type" ))
1188+ _update_attrs = (("key" , "value" ), ("protected" , "variable_type" ))
11891189
11901190
11911191class Group (SaveMixin , ObjectDeleteMixin , RESTObject ):
@@ -3716,8 +3716,8 @@ class ProjectVariableManager(CRUDMixin, RESTManager):
37163716 _path = "/projects/%(project_id)s/variables"
37173717 _obj_cls = ProjectVariable
37183718 _from_parent_attrs = {"project_id" : "id" }
3719- _create_attrs = (("key" , "value" ), tuple ( ))
3720- _update_attrs = (("key" , "value" ), tuple ( ))
3719+ _create_attrs = (("key" , "value" ), ( "protected" , "variable_type" ))
3720+ _update_attrs = (("key" , "value" ), ( "protected" , "variable_type" ))
37213721
37223722
37233723class ProjectService (SaveMixin , ObjectDeleteMixin , RESTObject ):
0 commit comments