summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Maddox <lmmx@users.noreply.github.com>2021-09-30 15:09:14 +0100
committerNejc Habjan <hab.nejc@gmail.com>2021-10-08 19:43:14 +0200
commit7992911896c62f23f25742d171001f30af514a9a (patch)
tree6166de1efa05d11fd08d4a0723c016561d822ed1
parent227607ca47c78e3958c6649edb644c7e26d55281 (diff)
downloadgitlab-7992911896c62f23f25742d171001f30af514a9a.tar.gz
docs(api): 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::