summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-10-08 19:57:59 +0200
committerGitHub <noreply@github.com>2021-10-08 19:57:59 +0200
commite851eed42d56718699261495698c0ac6ad6c6b22 (patch)
tree62b974fac0ebcc4d1940154a1ea0e0283b123e1f
parent49fae96ad6456ecca7b34dc61647b370311b4dc3 (diff)
parent7992911896c62f23f25742d171001f30af514a9a (diff)
downloadgitlab-e851eed42d56718699261495698c0ac6ad6c6b22.tar.gz
Merge pull request #1616 from lmmx/patch-1
Document the `update` method for project variables
-rw-r--r--docs/gl_objects/variables.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/gl_objects/variables.rst b/docs/gl_objects/variables.rst
index e6ae4ba..f679925 100644
--- a/docs/gl_objects/variables.rst
+++ b/docs/gl_objects/variables.rst
@@ -93,6 +93,8 @@ Update a variable value::
var.value = 'new_value'
var.save()
+ # or
+ project.variables.update("key1", {"value": "new_value"})
Remove a variable::