Skip to content

Commit 7992911

Browse files
lmmxnejch
authored andcommitted
docs(api): document the update method for project variables
1 parent 227607c commit 7992911

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/gl_objects/variables.rst

+2
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ Update a variable value::
9393

9494
var.value = 'new_value'
9595
var.save()
96+
# or
97+
project.variables.update("key1", {"value": "new_value"})
9698

9799
Remove a variable::
98100

0 commit comments

Comments
 (0)