@templmf/temp-solf-lmf 0.0.107 → 0.0.109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gitlab-foss-8-17-stable/doc/api/README.md +391 -0
- package/gitlab-foss-8-17-stable/doc/api/access_requests.md +139 -0
- package/gitlab-foss-8-17-stable/doc/api/award_emoji.md +374 -0
- package/gitlab-foss-8-17-stable/doc/api/boards.md +241 -0
- package/gitlab-foss-8-17-stable/doc/api/branches.md +260 -0
- package/gitlab-foss-8-17-stable/doc/api/broadcast_messages.md +154 -0
- package/gitlab-foss-8-17-stable/doc/api/build_triggers.md +118 -0
- package/gitlab-foss-8-17-stable/doc/api/build_variables.md +128 -0
- package/gitlab-foss-8-17-stable/doc/api/builds.md +610 -0
- package/gitlab-foss-8-17-stable/doc/api/ci/README.md +24 -0
- package/gitlab-foss-8-17-stable/doc/api/ci/builds.md +147 -0
- package/gitlab-foss-8-17-stable/doc/api/ci/lint.md +49 -0
- package/gitlab-foss-8-17-stable/doc/api/ci/runners.md +59 -0
- package/gitlab-foss-8-17-stable/doc/api/commits.md +479 -0
- package/gitlab-foss-8-17-stable/doc/api/deploy_key_multiple_projects.md +29 -0
- package/gitlab-foss-8-17-stable/doc/api/deploy_keys.md +216 -0
- package/gitlab-foss-8-17-stable/doc/api/deployments.md +218 -0
- package/gitlab-foss-8-17-stable/doc/api/enviroments.md +121 -0
- package/gitlab-foss-8-17-stable/doc/api/groups.md +484 -0
- package/gitlab-foss-8-17-stable/doc/api/issues.md +856 -0
- package/gitlab-foss-8-17-stable/doc/api/keys.md +46 -0
- package/gitlab-foss-8-17-stable/doc/api/labels.md +257 -0
- package/gitlab-foss-8-17-stable/doc/api/members.md +175 -0
- package/gitlab-foss-8-17-stable/doc/api/merge_requests.md +1158 -0
- package/gitlab-foss-8-17-stable/doc/api/milestones.md +105 -0
- package/gitlab-foss-8-17-stable/doc/api/namespaces.md +70 -0
- package/gitlab-foss-8-17-stable/doc/api/notes.md +407 -0
- package/gitlab-foss-8-17-stable/doc/api/notification_settings.md +177 -0
- package/gitlab-foss-8-17-stable/doc/api/oauth2.md +137 -0
- package/gitlab-foss-8-17-stable/doc/api/pipelines.md +259 -0
- package/gitlab-foss-8-17-stable/doc/api/project_snippets.md +118 -0
- package/gitlab-foss-8-17-stable/doc/api/projects.md +1402 -0
- package/gitlab-foss-8-17-stable/doc/api/repositories.md +200 -0
- package/gitlab-foss-8-17-stable/doc/api/repository_files.md +134 -0
- package/gitlab-foss-8-17-stable/doc/api/runners.md +322 -0
- package/gitlab-foss-8-17-stable/doc/api/services.md +812 -0
- package/gitlab-foss-8-17-stable/doc/api/session.md +56 -0
- package/gitlab-foss-8-17-stable/doc/api/settings.md +126 -0
- package/gitlab-foss-8-17-stable/doc/api/sidekiq_metrics.md +152 -0
- package/gitlab-foss-8-17-stable/doc/api/snippets.md +232 -0
- package/gitlab-foss-8-17-stable/doc/api/system_hooks.md +146 -0
- package/gitlab-foss-8-17-stable/doc/api/tags.md +191 -0
- package/gitlab-foss-8-17-stable/doc/api/templates/gitignores.md +579 -0
- package/gitlab-foss-8-17-stable/doc/api/templates/gitlab_ci_ymls.md +120 -0
- package/gitlab-foss-8-17-stable/doc/api/templates/licenses.md +147 -0
- package/gitlab-foss-8-17-stable/doc/api/todos.md +296 -0
- package/gitlab-foss-8-17-stable/doc/api/users.md +835 -0
- package/gitlab-foss-8-17-stable/doc/api/v3_to_v4.md +14 -0
- package/gitlab-foss-8-17-stable/doc/api/version.md +23 -0
- package/package.json +1 -1
- package/SkillConfigPanel.vue +0 -2322
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Keys
|
|
2
|
+
|
|
3
|
+
## Get SSH key with user by ID of an SSH key
|
|
4
|
+
|
|
5
|
+
Get SSH key with user by ID of an SSH key. Note only administrators can lookup SSH key with user by ID of an SSH key.
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
GET /keys/:id
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Parameters:
|
|
12
|
+
|
|
13
|
+
- `id` (required) - The ID of an SSH key
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"id": 1,
|
|
18
|
+
"title": "Sample key 25",
|
|
19
|
+
"key": "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt1256k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4soW6NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCddNaP0L+hM7zhFNzjFvpaMgJw0=",
|
|
20
|
+
"created_at": "2015-09-03T07:24:44.627Z",
|
|
21
|
+
"user": {
|
|
22
|
+
"name": "John Smith",
|
|
23
|
+
"username": "john_smith",
|
|
24
|
+
"id": 25,
|
|
25
|
+
"state": "active",
|
|
26
|
+
"avatar_url": "http://www.gravatar.com/avatar/cfa35b8cd2ec278026357769582fa563?s=40\u0026d=identicon",
|
|
27
|
+
"web_url": "http://localhost:3000/john_smith",
|
|
28
|
+
"created_at": "2015-09-03T07:24:01.670Z",
|
|
29
|
+
"is_admin": false,
|
|
30
|
+
"bio": null,
|
|
31
|
+
"skype": "",
|
|
32
|
+
"linkedin": "",
|
|
33
|
+
"twitter": "",
|
|
34
|
+
"website_url": "",
|
|
35
|
+
"email": "john@example.com",
|
|
36
|
+
"theme_id": 2,
|
|
37
|
+
"color_scheme_id": 1,
|
|
38
|
+
"projects_limit": 10,
|
|
39
|
+
"current_sign_in_at": null,
|
|
40
|
+
"identities": [],
|
|
41
|
+
"can_create_group": true,
|
|
42
|
+
"can_create_project": true,
|
|
43
|
+
"two_factor_enabled": false
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
```
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
# Labels
|
|
2
|
+
|
|
3
|
+
## List labels
|
|
4
|
+
|
|
5
|
+
Get all labels for a given project.
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
GET /projects/:id/labels
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
| Attribute | Type | Required | Description |
|
|
12
|
+
| --------- | ------- | -------- | --------------------- |
|
|
13
|
+
| `id` | integer | yes | The ID of the project |
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/projects/1/labels
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Example response:
|
|
20
|
+
|
|
21
|
+
```json
|
|
22
|
+
[
|
|
23
|
+
{
|
|
24
|
+
"id" : 1,
|
|
25
|
+
"name" : "bug",
|
|
26
|
+
"color" : "#d9534f",
|
|
27
|
+
"description": "Bug reported by user",
|
|
28
|
+
"open_issues_count": 1,
|
|
29
|
+
"closed_issues_count": 0,
|
|
30
|
+
"open_merge_requests_count": 1,
|
|
31
|
+
"subscribed": false,
|
|
32
|
+
"priority": 10
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"id" : 4,
|
|
36
|
+
"color" : "#d9534f",
|
|
37
|
+
"name" : "confirmed",
|
|
38
|
+
"description": "Confirmed issue",
|
|
39
|
+
"open_issues_count": 2,
|
|
40
|
+
"closed_issues_count": 5,
|
|
41
|
+
"open_merge_requests_count": 0,
|
|
42
|
+
"subscribed": false,
|
|
43
|
+
"priority": null
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"id" : 7,
|
|
47
|
+
"name" : "critical",
|
|
48
|
+
"color" : "#d9534f",
|
|
49
|
+
"description": "Critical issue. Need fix ASAP",
|
|
50
|
+
"open_issues_count": 1,
|
|
51
|
+
"closed_issues_count": 3,
|
|
52
|
+
"open_merge_requests_count": 1,
|
|
53
|
+
"subscribed": false,
|
|
54
|
+
"priority": null
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"id" : 8,
|
|
58
|
+
"name" : "documentation",
|
|
59
|
+
"color" : "#f0ad4e",
|
|
60
|
+
"description": "Issue about documentation",
|
|
61
|
+
"open_issues_count": 1,
|
|
62
|
+
"closed_issues_count": 0,
|
|
63
|
+
"open_merge_requests_count": 2,
|
|
64
|
+
"subscribed": false,
|
|
65
|
+
"priority": null
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"id" : 9,
|
|
69
|
+
"color" : "#5cb85c",
|
|
70
|
+
"name" : "enhancement",
|
|
71
|
+
"description": "Enhancement proposal",
|
|
72
|
+
"open_issues_count": 1,
|
|
73
|
+
"closed_issues_count": 0,
|
|
74
|
+
"open_merge_requests_count": 1,
|
|
75
|
+
"subscribed": true,
|
|
76
|
+
"priority": null
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Create a new label
|
|
82
|
+
|
|
83
|
+
Creates a new label for the given repository with the given name and color.
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
POST /projects/:id/labels
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
| Attribute | Type | Required | Description |
|
|
90
|
+
| ------------- | ------- | -------- | ---------------------------- |
|
|
91
|
+
| `id` | integer | yes | The ID of the project |
|
|
92
|
+
| `name` | string | yes | The name of the label |
|
|
93
|
+
| `color` | string | yes | The color of the label in 6-digit hex notation with leading `#` sign |
|
|
94
|
+
| `description` | string | no | The description of the label |
|
|
95
|
+
| `priority` | integer | no | The priority of the label. Must be greater or equal than zero or `null` to remove the priority. |
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
curl --data "name=feature&color=#5843AD" --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/labels"
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Example response:
|
|
102
|
+
|
|
103
|
+
```json
|
|
104
|
+
{
|
|
105
|
+
"id" : 10,
|
|
106
|
+
"name" : "feature",
|
|
107
|
+
"color" : "#5843AD",
|
|
108
|
+
"description":null,
|
|
109
|
+
"open_issues_count": 0,
|
|
110
|
+
"closed_issues_count": 0,
|
|
111
|
+
"open_merge_requests_count": 0,
|
|
112
|
+
"subscribed": false,
|
|
113
|
+
"priority": null
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## Delete a label
|
|
118
|
+
|
|
119
|
+
Deletes a label with a given name.
|
|
120
|
+
|
|
121
|
+
```
|
|
122
|
+
DELETE /projects/:id/labels
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
| Attribute | Type | Required | Description |
|
|
126
|
+
| --------- | ------- | -------- | --------------------- |
|
|
127
|
+
| `id` | integer | yes | The ID of the project |
|
|
128
|
+
| `name` | string | yes | The name of the label |
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
curl --request DELETE --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/labels?name=bug"
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Example response:
|
|
135
|
+
|
|
136
|
+
```json
|
|
137
|
+
{
|
|
138
|
+
"id" : 1,
|
|
139
|
+
"name" : "bug",
|
|
140
|
+
"color" : "#d9534f",
|
|
141
|
+
"description": "Bug reported by user",
|
|
142
|
+
"open_issues_count": 1,
|
|
143
|
+
"closed_issues_count": 0,
|
|
144
|
+
"open_merge_requests_count": 1,
|
|
145
|
+
"subscribed": false,
|
|
146
|
+
"priority": null
|
|
147
|
+
}
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
## Edit an existing label
|
|
151
|
+
|
|
152
|
+
Updates an existing label with new name or new color. At least one parameter
|
|
153
|
+
is required, to update the label.
|
|
154
|
+
|
|
155
|
+
```
|
|
156
|
+
PUT /projects/:id/labels
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
| Attribute | Type | Required | Description |
|
|
160
|
+
| --------------- | ------- | --------------------------------- | ------------------------------- |
|
|
161
|
+
| `id` | integer | yes | The ID of the project |
|
|
162
|
+
| `name` | string | yes | The name of the existing label |
|
|
163
|
+
| `new_name` | string | yes if `color` is not provided | The new name of the label |
|
|
164
|
+
| `color` | string | yes if `new_name` is not provided | The new color of the label in 6-digit hex notation with leading `#` sign |
|
|
165
|
+
| `description` | string | no | The new description of the label |
|
|
166
|
+
| `priority` | integer | no | The new priority of the label. Must be greater or equal than zero or `null` to remove the priority. |
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
curl --request PUT --data "name=documentation&new_name=docs&color=#8E44AD&description=Documentation" --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/labels"
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
Example response:
|
|
174
|
+
|
|
175
|
+
```json
|
|
176
|
+
{
|
|
177
|
+
"id" : 8,
|
|
178
|
+
"name" : "docs",
|
|
179
|
+
"color" : "#8E44AD",
|
|
180
|
+
"description": "Documentation",
|
|
181
|
+
"open_issues_count": 1,
|
|
182
|
+
"closed_issues_count": 0,
|
|
183
|
+
"open_merge_requests_count": 2,
|
|
184
|
+
"subscribed": false,
|
|
185
|
+
"priority": null
|
|
186
|
+
}
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
## Subscribe to a label
|
|
190
|
+
|
|
191
|
+
Subscribes the authenticated user to a label to receive notifications.
|
|
192
|
+
If the user is already subscribed to the label, the status code `304`
|
|
193
|
+
is returned.
|
|
194
|
+
|
|
195
|
+
```
|
|
196
|
+
POST /projects/:id/labels/:label_id/subscription
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
| Attribute | Type | Required | Description |
|
|
200
|
+
| ---------- | ----------------- | -------- | ------------------------------------ |
|
|
201
|
+
| `id` | integer | yes | The ID of a project |
|
|
202
|
+
| `label_id` | integer or string | yes | The ID or title of a project's label |
|
|
203
|
+
|
|
204
|
+
```bash
|
|
205
|
+
curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/projects/5/labels/1/subscription
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
Example response:
|
|
209
|
+
|
|
210
|
+
```json
|
|
211
|
+
{
|
|
212
|
+
"id" : 1,
|
|
213
|
+
"name" : "bug",
|
|
214
|
+
"color" : "#d9534f",
|
|
215
|
+
"description": "Bug reported by user",
|
|
216
|
+
"open_issues_count": 1,
|
|
217
|
+
"closed_issues_count": 0,
|
|
218
|
+
"open_merge_requests_count": 1,
|
|
219
|
+
"subscribed": true,
|
|
220
|
+
"priority": null
|
|
221
|
+
}
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
## Unsubscribe from a label
|
|
225
|
+
|
|
226
|
+
Unsubscribes the authenticated user from a label to not receive notifications
|
|
227
|
+
from it. If the user is not subscribed to the label, the
|
|
228
|
+
status code `304` is returned.
|
|
229
|
+
|
|
230
|
+
```
|
|
231
|
+
DELETE /projects/:id/labels/:label_id/subscription
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
| Attribute | Type | Required | Description |
|
|
235
|
+
| ---------- | ----------------- | -------- | ------------------------------------ |
|
|
236
|
+
| `id` | integer | yes | The ID of a project |
|
|
237
|
+
| `label_id` | integer or string | yes | The ID or title of a project's label |
|
|
238
|
+
|
|
239
|
+
```bash
|
|
240
|
+
curl --request DELETE --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/projects/5/labels/1/subscription
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
Example response:
|
|
244
|
+
|
|
245
|
+
```json
|
|
246
|
+
{
|
|
247
|
+
"id" : 1,
|
|
248
|
+
"name" : "bug",
|
|
249
|
+
"color" : "#d9534f",
|
|
250
|
+
"description": "Bug reported by user",
|
|
251
|
+
"open_issues_count": 1,
|
|
252
|
+
"closed_issues_count": 0,
|
|
253
|
+
"open_merge_requests_count": 1,
|
|
254
|
+
"subscribed": false,
|
|
255
|
+
"priority": null
|
|
256
|
+
}
|
|
257
|
+
```
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# Group and project members
|
|
2
|
+
|
|
3
|
+
**Valid access levels**
|
|
4
|
+
|
|
5
|
+
The access levels are defined in the `Gitlab::Access` module. Currently, these levels are recognized:
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
10 => Guest access
|
|
9
|
+
20 => Reporter access
|
|
10
|
+
30 => Developer access
|
|
11
|
+
40 => Master access
|
|
12
|
+
50 => Owner access # Only valid for groups
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## List all members of a group or project
|
|
16
|
+
|
|
17
|
+
Gets a list of group or project members viewable by the authenticated user.
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
GET /groups/:id/members
|
|
21
|
+
GET /projects/:id/members
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
| Attribute | Type | Required | Description |
|
|
25
|
+
| --------- | ---- | -------- | ----------- |
|
|
26
|
+
| `id` | integer/string | yes | The group/project ID or path |
|
|
27
|
+
| `query` | string | no | A query string to search for members |
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/groups/:id/members
|
|
31
|
+
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/projects/:id/members
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Example response:
|
|
35
|
+
|
|
36
|
+
```json
|
|
37
|
+
[
|
|
38
|
+
{
|
|
39
|
+
"id": 1,
|
|
40
|
+
"username": "raymond_smith",
|
|
41
|
+
"name": "Raymond Smith",
|
|
42
|
+
"state": "active",
|
|
43
|
+
"created_at": "2012-10-22T14:13:35Z",
|
|
44
|
+
"access_level": 30
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": 2,
|
|
48
|
+
"username": "john_doe",
|
|
49
|
+
"name": "John Doe",
|
|
50
|
+
"state": "active",
|
|
51
|
+
"created_at": "2012-10-22T14:13:35Z",
|
|
52
|
+
"access_level": 30
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Get a member of a group or project
|
|
58
|
+
|
|
59
|
+
Gets a member of a group or project.
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
GET /groups/:id/members/:user_id
|
|
63
|
+
GET /projects/:id/members/:user_id
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
| Attribute | Type | Required | Description |
|
|
67
|
+
| --------- | ---- | -------- | ----------- |
|
|
68
|
+
| `id` | integer/string | yes | The group/project ID or path |
|
|
69
|
+
| `user_id` | integer | yes | The user ID of the member |
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/groups/:id/members/:user_id
|
|
73
|
+
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/projects/:id/members/:user_id
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Example response:
|
|
77
|
+
|
|
78
|
+
```json
|
|
79
|
+
{
|
|
80
|
+
"id": 1,
|
|
81
|
+
"username": "raymond_smith",
|
|
82
|
+
"name": "Raymond Smith",
|
|
83
|
+
"state": "active",
|
|
84
|
+
"created_at": "2012-10-22T14:13:35Z",
|
|
85
|
+
"access_level": 30,
|
|
86
|
+
"expires_at": null
|
|
87
|
+
}
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Add a member to a group or project
|
|
91
|
+
|
|
92
|
+
Adds a member to a group or project.
|
|
93
|
+
|
|
94
|
+
```
|
|
95
|
+
POST /groups/:id/members
|
|
96
|
+
POST /projects/:id/members
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
| Attribute | Type | Required | Description |
|
|
100
|
+
| --------- | ---- | -------- | ----------- |
|
|
101
|
+
| `id` | integer/string | yes | The group/project ID or path |
|
|
102
|
+
| `user_id` | integer | yes | The user ID of the new member |
|
|
103
|
+
| `access_level` | integer | yes | A valid access level |
|
|
104
|
+
| `expires_at` | string | no | A date string in the format YEAR-MONTH-DAY |
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" --data "user_id=1&access_level=30" https://gitlab.example.com/api/v3/groups/:id/members
|
|
108
|
+
curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" --data "user_id=1&access_level=30" https://gitlab.example.com/api/v3/projects/:id/members
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Example response:
|
|
112
|
+
|
|
113
|
+
```json
|
|
114
|
+
{
|
|
115
|
+
"id": 1,
|
|
116
|
+
"username": "raymond_smith",
|
|
117
|
+
"name": "Raymond Smith",
|
|
118
|
+
"state": "active",
|
|
119
|
+
"created_at": "2012-10-22T14:13:35Z",
|
|
120
|
+
"access_level": 30
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## Edit a member of a group or project
|
|
125
|
+
|
|
126
|
+
Updates a member of a group or project.
|
|
127
|
+
|
|
128
|
+
```
|
|
129
|
+
PUT /groups/:id/members/:user_id
|
|
130
|
+
PUT /projects/:id/members/:user_id
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
| Attribute | Type | Required | Description |
|
|
134
|
+
| --------- | ---- | -------- | ----------- |
|
|
135
|
+
| `id` | integer/string | yes | The group/project ID or path |
|
|
136
|
+
| `user_id` | integer | yes | The user ID of the member |
|
|
137
|
+
| `access_level` | integer | yes | A valid access level |
|
|
138
|
+
| `expires_at` | string | no | A date string in the format YEAR-MONTH-DAY |
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
curl --request PUT --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/groups/:id/members/:user_id?access_level=40
|
|
142
|
+
curl --request PUT --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/projects/:id/members/:user_id?access_level=40
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
Example response:
|
|
146
|
+
|
|
147
|
+
```json
|
|
148
|
+
{
|
|
149
|
+
"id": 1,
|
|
150
|
+
"username": "raymond_smith",
|
|
151
|
+
"name": "Raymond Smith",
|
|
152
|
+
"state": "active",
|
|
153
|
+
"created_at": "2012-10-22T14:13:35Z",
|
|
154
|
+
"access_level": 40
|
|
155
|
+
}
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
## Remove a member from a group or project
|
|
159
|
+
|
|
160
|
+
Removes a user from a group or project.
|
|
161
|
+
|
|
162
|
+
```
|
|
163
|
+
DELETE /groups/:id/members/:user_id
|
|
164
|
+
DELETE /projects/:id/members/:user_id
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
| Attribute | Type | Required | Description |
|
|
168
|
+
| --------- | ---- | -------- | ----------- |
|
|
169
|
+
| `id` | integer/string | yes | The group/project ID or path |
|
|
170
|
+
| `user_id` | integer | yes | The user ID of the member |
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
curl --request DELETE --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/groups/:id/members/:user_id
|
|
174
|
+
curl --request DELETE --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/projects/:id/members/:user_id
|
|
175
|
+
```
|