Skip to content

Commit f5e80cf

Browse files
docs: variables: add note about filter for updating
Add a note about using `filter` when updating a variable. Closes: #2835 Closes: #1387
1 parent 44f62c4 commit f5e80cf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/gl_objects/variables.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,19 @@ Update a variable value::
102102
# or
103103
project.variables.update("key1", {"value": "new_value"})
104104

105+
.. note::
106+
107+
If there are multiple variables with the same key, use ``filter`` to select
108+
the correct environment_scope. See the GitLab API docs for more information.
109+
105110
Remove a variable::
106111

107112
project.variables.delete('key_name')
108113
group.variables.delete('key_name')
109114
# or
110115
var.delete()
116+
117+
.. note::
118+
119+
If there are multiple variables with the same key, use ``filter`` to select
120+
the correct environment_scope. See the GitLab API docs for more information.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy