Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5701eb0d
Commit
5701eb0d
authored
May 05, 2020
by
Jason Goodman
Committed by
Suzanne Selhorn
May 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Documentation for PUT Requests to Feature Flag User Lists API
parent
bc8237d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
2 deletions
+43
-2
doc/api/feature_flag_user_lists.md
doc/api/feature_flag_user_lists.md
+43
-2
No files found.
doc/api/feature_flag_user_lists.md
View file @
5701eb0d
# Feature
Flag User L
ists API **(PREMIUM)**
# Feature
flag user l
ists API **(PREMIUM)**
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/205409) in [GitLab Premium](https://about.gitlab.com/pricing/) 12.10.
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/205409) in [GitLab Premium](https://about.gitlab.com/pricing/) 12.10.
...
@@ -63,7 +63,7 @@ POST /projects/:id/feature_flags_user_lists
...
@@ -63,7 +63,7 @@ POST /projects/:id/feature_flags_user_lists
| ------------------- | ---------------- | ---------- | ---------------------------------------------------------------------------------------|
| ------------------- | ---------------- | ---------- | ---------------------------------------------------------------------------------------|
|
`id`
| integer/string | yes | The ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
. |
|
`id`
| integer/string | yes | The ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
. |
|
`name`
| string | yes | The name of the feature flag. |
|
`name`
| string | yes | The name of the feature flag. |
|
`user_xids`
| string | yes | A comma separated list of user
id
s. |
|
`user_xids`
| string | yes | A comma separated list of user
ID
s. |
```
shell
```
shell
curl https://gitlab.example.com/api/v4/projects/1/feature_flags_user_lists
\
curl https://gitlab.example.com/api/v4/projects/1/feature_flags_user_lists
\
...
@@ -122,6 +122,47 @@ Example response:
...
@@ -122,6 +122,47 @@ Example response:
}
}
```
```
## Update a feature flag user list
Updates a feature flag user list.
```
plaintext
PUT /projects/:id/feature_flags_user_lists/:iid
```
| Attribute | Type | Required | Description |
| ------------------- | ---------------- | ---------- | ---------------------------------------------------------------------------------------|
|
`id`
| integer/string | yes | The ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
. |
|
`iid`
| integer/string | yes | The internal ID of the project's feature flag user list. |
|
`name`
| string | no | The name of the feature flag. |
|
`user_xids`
| string | no | A comma separated list of user IDs. |
```
shell
curl https://gitlab.example.com/api/v4/projects/1/feature_flags_user_lists/1
\
--header
"PRIVATE-TOKEN: <your_access_token>"
\
--header
"Content-type: application/json"
\
--request
PUT
\
--data
@-
<<
EOF
{
"user_xids": "user2,user3,user4"
}
EOF
```
Example response:
```
json
{
"name"
:
"my_user_list"
,
"user_xids"
:
"user2,user3,user4"
,
"id"
:
1
,
"iid"
:
1
,
"project_id"
:
1
,
"created_at"
:
"2020-02-04T08:32:27.288Z"
,
"updated_at"
:
"2020-02-05T09:33:17.179Z"
}
```
## Delete feature flag user list
## Delete feature flag user list
Deletes a feature flag user list.
Deletes a feature flag user list.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment