@templmf/temp-solf-lmf 0.0.109 → 0.0.110

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.
Files changed (51) hide show
  1. package/package.json +1 -1
  2. package//347/247/273/345/212/250/345/272/224/347/224/250/351/235/236/347/256/241/347/220/206/345/221/230/351/205/215/347/275/256/350/247/222/350/211/262/346/270/205/345/215/225.xlsx +0 -0
  3. package/gitlab-foss-8-17-stable/doc/api/README.md +0 -391
  4. package/gitlab-foss-8-17-stable/doc/api/access_requests.md +0 -139
  5. package/gitlab-foss-8-17-stable/doc/api/award_emoji.md +0 -374
  6. package/gitlab-foss-8-17-stable/doc/api/boards.md +0 -241
  7. package/gitlab-foss-8-17-stable/doc/api/branches.md +0 -260
  8. package/gitlab-foss-8-17-stable/doc/api/broadcast_messages.md +0 -154
  9. package/gitlab-foss-8-17-stable/doc/api/build_triggers.md +0 -118
  10. package/gitlab-foss-8-17-stable/doc/api/build_variables.md +0 -128
  11. package/gitlab-foss-8-17-stable/doc/api/builds.md +0 -610
  12. package/gitlab-foss-8-17-stable/doc/api/ci/README.md +0 -24
  13. package/gitlab-foss-8-17-stable/doc/api/ci/builds.md +0 -147
  14. package/gitlab-foss-8-17-stable/doc/api/ci/lint.md +0 -49
  15. package/gitlab-foss-8-17-stable/doc/api/ci/runners.md +0 -59
  16. package/gitlab-foss-8-17-stable/doc/api/commits.md +0 -479
  17. package/gitlab-foss-8-17-stable/doc/api/deploy_key_multiple_projects.md +0 -29
  18. package/gitlab-foss-8-17-stable/doc/api/deploy_keys.md +0 -216
  19. package/gitlab-foss-8-17-stable/doc/api/deployments.md +0 -218
  20. package/gitlab-foss-8-17-stable/doc/api/enviroments.md +0 -121
  21. package/gitlab-foss-8-17-stable/doc/api/groups.md +0 -484
  22. package/gitlab-foss-8-17-stable/doc/api/issues.md +0 -856
  23. package/gitlab-foss-8-17-stable/doc/api/keys.md +0 -46
  24. package/gitlab-foss-8-17-stable/doc/api/labels.md +0 -257
  25. package/gitlab-foss-8-17-stable/doc/api/members.md +0 -175
  26. package/gitlab-foss-8-17-stable/doc/api/merge_requests.md +0 -1158
  27. package/gitlab-foss-8-17-stable/doc/api/milestones.md +0 -105
  28. package/gitlab-foss-8-17-stable/doc/api/namespaces.md +0 -70
  29. package/gitlab-foss-8-17-stable/doc/api/notes.md +0 -407
  30. package/gitlab-foss-8-17-stable/doc/api/notification_settings.md +0 -177
  31. package/gitlab-foss-8-17-stable/doc/api/oauth2.md +0 -137
  32. package/gitlab-foss-8-17-stable/doc/api/pipelines.md +0 -259
  33. package/gitlab-foss-8-17-stable/doc/api/project_snippets.md +0 -118
  34. package/gitlab-foss-8-17-stable/doc/api/projects.md +0 -1402
  35. package/gitlab-foss-8-17-stable/doc/api/repositories.md +0 -200
  36. package/gitlab-foss-8-17-stable/doc/api/repository_files.md +0 -134
  37. package/gitlab-foss-8-17-stable/doc/api/runners.md +0 -322
  38. package/gitlab-foss-8-17-stable/doc/api/services.md +0 -812
  39. package/gitlab-foss-8-17-stable/doc/api/session.md +0 -56
  40. package/gitlab-foss-8-17-stable/doc/api/settings.md +0 -126
  41. package/gitlab-foss-8-17-stable/doc/api/sidekiq_metrics.md +0 -152
  42. package/gitlab-foss-8-17-stable/doc/api/snippets.md +0 -232
  43. package/gitlab-foss-8-17-stable/doc/api/system_hooks.md +0 -146
  44. package/gitlab-foss-8-17-stable/doc/api/tags.md +0 -191
  45. package/gitlab-foss-8-17-stable/doc/api/templates/gitignores.md +0 -579
  46. package/gitlab-foss-8-17-stable/doc/api/templates/gitlab_ci_ymls.md +0 -120
  47. package/gitlab-foss-8-17-stable/doc/api/templates/licenses.md +0 -147
  48. package/gitlab-foss-8-17-stable/doc/api/todos.md +0 -296
  49. package/gitlab-foss-8-17-stable/doc/api/users.md +0 -835
  50. package/gitlab-foss-8-17-stable/doc/api/v3_to_v4.md +0 -14
  51. package/gitlab-foss-8-17-stable/doc/api/version.md +0 -23
@@ -1,260 +0,0 @@
1
- # Branches
2
-
3
- ## List repository branches
4
-
5
- Get a list of repository branches from a project, sorted by name alphabetically.
6
-
7
- ```
8
- GET /projects/:id/repository/branches
9
- ```
10
-
11
- | Attribute | Type | Required | Description |
12
- | --------- | ---- | -------- | ----------- |
13
- | `id` | integer | yes | The ID of a project |
14
-
15
- ```bash
16
- curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/projects/5/repository/branches
17
- ```
18
-
19
- Example response:
20
-
21
- ```json
22
- [
23
- {
24
- "name": "master",
25
- "merged": false,
26
- "protected": true,
27
- "developers_can_push": false,
28
- "developers_can_merge": false,
29
- "commit": {
30
- "author_email": "john@example.com",
31
- "author_name": "John Smith",
32
- "authored_date": "2012-06-27T05:51:39-07:00",
33
- "committed_date": "2012-06-28T03:44:20-07:00",
34
- "committer_email": "john@example.com",
35
- "committer_name": "John Smith",
36
- "id": "7b5c3cc8be40ee161ae89a06bba6229da1032a0c",
37
- "message": "add projects API",
38
- "parent_ids": [
39
- "4ad91d3c1144c406e50c7b33bae684bd6837faf8"
40
- ]
41
- }
42
- },
43
- ...
44
- ]
45
- ```
46
-
47
- ## Get single repository branch
48
-
49
- Get a single project repository branch.
50
-
51
- ```
52
- GET /projects/:id/repository/branches/:branch
53
- ```
54
-
55
- | Attribute | Type | Required | Description |
56
- | --------- | ---- | -------- | ----------- |
57
- | `id` | integer | yes | The ID of a project |
58
- | `branch` | string | yes | The name of the branch |
59
-
60
- ```bash
61
- curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/projects/5/repository/branches/master
62
- ```
63
-
64
- Example response:
65
-
66
- ```json
67
- {
68
- "name": "master",
69
- "merged": false,
70
- "protected": true,
71
- "developers_can_push": false,
72
- "developers_can_merge": false,
73
- "commit": {
74
- "author_email": "john@example.com",
75
- "author_name": "John Smith",
76
- "authored_date": "2012-06-27T05:51:39-07:00",
77
- "committed_date": "2012-06-28T03:44:20-07:00",
78
- "committer_email": "john@example.com",
79
- "committer_name": "John Smith",
80
- "id": "7b5c3cc8be40ee161ae89a06bba6229da1032a0c",
81
- "message": "add projects API",
82
- "parent_ids": [
83
- "4ad91d3c1144c406e50c7b33bae684bd6837faf8"
84
- ]
85
- }
86
- }
87
- ```
88
-
89
- ## Protect repository branch
90
-
91
- Protects a single project repository branch. This is an idempotent function,
92
- protecting an already protected repository branch still returns a `200 OK`
93
- status code.
94
-
95
- ```
96
- PUT /projects/:id/repository/branches/:branch/protect
97
- ```
98
-
99
- ```bash
100
- curl --request PUT --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/projects/5/repository/branches/master/protect?developers_can_push=true&developers_can_merge=true
101
- ```
102
-
103
- | Attribute | Type | Required | Description |
104
- | --------- | ---- | -------- | ----------- |
105
- | `id` | integer | yes | The ID of a project |
106
- | `branch` | string | yes | The name of the branch |
107
- | `developers_can_push` | boolean | no | Flag if developers can push to the branch |
108
- | `developers_can_merge` | boolean | no | Flag if developers can merge to the branch |
109
-
110
- Example response:
111
-
112
- ```json
113
- {
114
- "commit": {
115
- "author_email": "john@example.com",
116
- "author_name": "John Smith",
117
- "authored_date": "2012-06-27T05:51:39-07:00",
118
- "committed_date": "2012-06-28T03:44:20-07:00",
119
- "committer_email": "john@example.com",
120
- "committer_name": "John Smith",
121
- "id": "7b5c3cc8be40ee161ae89a06bba6229da1032a0c",
122
- "message": "add projects API",
123
- "parent_ids": [
124
- "4ad91d3c1144c406e50c7b33bae684bd6837faf8"
125
- ]
126
- },
127
- "name": "master",
128
- "merged": false,
129
- "protected": true,
130
- "developers_can_push": true,
131
- "developers_can_merge": true
132
- }
133
- ```
134
-
135
- ## Unprotect repository branch
136
-
137
- Unprotects a single project repository branch. This is an idempotent function,
138
- unprotecting an already unprotected repository branch still returns a `200 OK`
139
- status code.
140
-
141
- ```
142
- PUT /projects/:id/repository/branches/:branch/unprotect
143
- ```
144
-
145
- ```bash
146
- curl --request PUT --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/projects/5/repository/branches/master/unprotect
147
- ```
148
-
149
- | Attribute | Type | Required | Description |
150
- | --------- | ---- | -------- | ----------- |
151
- | `id` | integer | yes | The ID of a project |
152
- | `branch` | string | yes | The name of the branch |
153
-
154
- Example response:
155
-
156
- ```json
157
- {
158
- "commit": {
159
- "author_email": "john@example.com",
160
- "author_name": "John Smith",
161
- "authored_date": "2012-06-27T05:51:39-07:00",
162
- "committed_date": "2012-06-28T03:44:20-07:00",
163
- "committer_email": "john@example.com",
164
- "committer_name": "John Smith",
165
- "id": "7b5c3cc8be40ee161ae89a06bba6229da1032a0c",
166
- "message": "add projects API",
167
- "parent_ids": [
168
- "4ad91d3c1144c406e50c7b33bae684bd6837faf8"
169
- ]
170
- },
171
- "name": "master",
172
- "merged": false,
173
- "protected": false,
174
- "developers_can_push": false,
175
- "developers_can_merge": false
176
- }
177
- ```
178
-
179
- ## Create repository branch
180
-
181
- ```
182
- POST /projects/:id/repository/branches
183
- ```
184
-
185
- | Attribute | Type | Required | Description |
186
- | --------- | ---- | -------- | ----------- |
187
- | `id` | integer | yes | The ID of a project |
188
- | `branch_name` | string | yes | The name of the branch |
189
- | `ref` | string | yes | The branch name or commit SHA to create branch from |
190
-
191
- ```bash
192
- curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/5/repository/branches?branch_name=newbranch&ref=master"
193
- ```
194
-
195
- Example response:
196
-
197
- ```json
198
- {
199
- "commit": {
200
- "author_email": "john@example.com",
201
- "author_name": "John Smith",
202
- "authored_date": "2012-06-27T05:51:39-07:00",
203
- "committed_date": "2012-06-28T03:44:20-07:00",
204
- "committer_email": "john@example.com",
205
- "committer_name": "John Smith",
206
- "id": "7b5c3cc8be40ee161ae89a06bba6229da1032a0c",
207
- "message": "add projects API",
208
- "parent_ids": [
209
- "4ad91d3c1144c406e50c7b33bae684bd6837faf8"
210
- ]
211
- },
212
- "name": "newbranch",
213
- "merged": false,
214
- "protected": false,
215
- "developers_can_push": false,
216
- "developers_can_merge": false
217
- }
218
- ```
219
-
220
- ## Delete repository branch
221
-
222
- ```
223
- DELETE /projects/:id/repository/branches/:branch
224
- ```
225
-
226
- | Attribute | Type | Required | Description |
227
- | --------- | ---- | -------- | ----------- |
228
- | `id` | integer | yes | The ID of a project |
229
- | `branch` | string | yes | The name of the branch |
230
-
231
- In case of an error, an explaining message is provided.
232
-
233
- ```bash
234
- curl --request DELETE --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/5/repository/branches/newbranch"
235
- ```
236
-
237
- Example response:
238
-
239
- ```json
240
- {
241
- "branch_name": "newbranch"
242
- }
243
- ```
244
-
245
- ## Delete merged branches
246
-
247
- Will delete all branches that are merged into the project's default branch.
248
-
249
- ```
250
- DELETE /projects/:id/repository/merged_branches
251
- ```
252
-
253
- | Attribute | Type | Required | Description |
254
- | --------- | ---- | -------- | ----------- |
255
- | `id` | integer | yes | The ID of a project |
256
-
257
-
258
- ```bash
259
- curl --request DELETE --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/5/repository/merged_branches"
260
- ```
@@ -1,154 +0,0 @@
1
- # Broadcast Messages
2
-
3
- > **Note:** This feature was introduced in GitLab 8.12.
4
-
5
- The broadcast message API is only accessible to administrators. All requests by
6
- guests will respond with `401 Unauthorized`, and all requests by normal users
7
- will respond with `403 Forbidden`.
8
-
9
- ## Get all broadcast messages
10
-
11
- ```
12
- GET /broadcast_messages
13
- ```
14
-
15
- ```bash
16
- curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/broadcast_messages
17
- ```
18
-
19
- Example response:
20
-
21
- ```json
22
- [
23
- {
24
- "message":"Example broadcast message",
25
- "starts_at":"2016-08-24T23:21:16.078Z",
26
- "ends_at":"2016-08-26T23:21:16.080Z",
27
- "color":"#E75E40",
28
- "font":"#FFFFFF",
29
- "id":1,
30
- "active": false
31
- }
32
- ]
33
- ```
34
-
35
- ## Get a specific broadcast message
36
-
37
- ```
38
- GET /broadcast_messages/:id
39
- ```
40
-
41
- | Attribute | Type | Required | Description |
42
- | ----------- | -------- | -------- | ------------------------- |
43
- | `id` | integer | yes | Broadcast message ID |
44
-
45
- ```bash
46
- curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/broadcast_messages/1
47
- ```
48
-
49
- Example response:
50
-
51
- ```json
52
- {
53
- "message":"Deploy in progress",
54
- "starts_at":"2016-08-24T23:21:16.078Z",
55
- "ends_at":"2016-08-26T23:21:16.080Z",
56
- "color":"#cecece",
57
- "font":"#FFFFFF",
58
- "id":1,
59
- "active":false
60
- }
61
- ```
62
-
63
- ## Create a broadcast message
64
-
65
- ```
66
- POST /broadcast_messages
67
- ```
68
-
69
- | Attribute | Type | Required | Description |
70
- | ----------- | -------- | -------- | ---------------------------------------------------- |
71
- | `message` | string | yes | Message to display |
72
- | `starts_at` | datetime | no | Starting time (defaults to current time) |
73
- | `ends_at` | datetime | no | Ending time (defaults to one hour from current time) |
74
- | `color` | string | no | Background color hex code |
75
- | `font` | string | no | Foreground color hex code |
76
-
77
- ```bash
78
- curl --data "message=Deploy in progress&color=#cecece" --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/broadcast_messages
79
- ```
80
-
81
- Example response:
82
-
83
- ```json
84
- {
85
- "message":"Deploy in progress",
86
- "starts_at":"2016-08-26T00:41:35.060Z",
87
- "ends_at":"2016-08-26T01:41:35.060Z",
88
- "color":"#cecece",
89
- "font":"#FFFFFF",
90
- "id":1,
91
- "active": true
92
- }
93
- ```
94
-
95
- ## Update a broadcast message
96
-
97
- ```
98
- PUT /broadcast_messages/:id
99
- ```
100
-
101
- | Attribute | Type | Required | Description |
102
- | ----------- | -------- | -------- | ------------------------- |
103
- | `id` | integer | yes | Broadcast message ID |
104
- | `message` | string | no | Message to display |
105
- | `starts_at` | datetime | no | Starting time |
106
- | `ends_at` | datetime | no | Ending time |
107
- | `color` | string | no | Background color hex code |
108
- | `font` | string | no | Foreground color hex code |
109
-
110
- ```bash
111
- curl --request PUT --data "message=Update message&color=#000" --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/broadcast_messages/1
112
- ```
113
-
114
- Example response:
115
-
116
- ```json
117
- {
118
- "message":"Update message",
119
- "starts_at":"2016-08-26T00:41:35.060Z",
120
- "ends_at":"2016-08-26T01:41:35.060Z",
121
- "color":"#000",
122
- "font":"#FFFFFF",
123
- "id":1,
124
- "active": true
125
- }
126
- ```
127
-
128
- ## Delete a broadcast message
129
-
130
- ```
131
- DELETE /broadcast_messages/:id
132
- ```
133
-
134
- | Attribute | Type | Required | Description |
135
- | ----------- | -------- | -------- | ------------------------- |
136
- | `id` | integer | yes | Broadcast message ID |
137
-
138
- ```bash
139
- curl --request DELETE --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/broadcast_messages/1
140
- ```
141
-
142
- Example response:
143
-
144
- ```json
145
- {
146
- "message":"Update message",
147
- "starts_at":"2016-08-26T00:41:35.060Z",
148
- "ends_at":"2016-08-26T01:41:35.060Z",
149
- "color":"#000",
150
- "font":"#FFFFFF",
151
- "id":1,
152
- "active": true
153
- }
154
- ```
@@ -1,118 +0,0 @@
1
- # Build triggers
2
-
3
- You can read more about [triggering builds through the API](../ci/triggers/README.md).
4
-
5
- ## List project triggers
6
-
7
- Get a list of project's build triggers.
8
-
9
- ```
10
- GET /projects/:id/triggers
11
- ```
12
-
13
- | Attribute | Type | required | Description |
14
- |-----------|---------|----------|---------------------|
15
- | `id` | integer | yes | The ID of a project |
16
-
17
- ```
18
- curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/triggers"
19
- ```
20
-
21
- ```json
22
- [
23
- {
24
- "created_at": "2015-12-23T16:24:34.716Z",
25
- "deleted_at": null,
26
- "last_used": "2016-01-04T15:41:21.986Z",
27
- "token": "fbdb730c2fbdb095a0862dbd8ab88b",
28
- "updated_at": "2015-12-23T16:24:34.716Z"
29
- },
30
- {
31
- "created_at": "2015-12-23T16:25:56.760Z",
32
- "deleted_at": null,
33
- "last_used": null,
34
- "token": "7b9148c158980bbd9bcea92c17522d",
35
- "updated_at": "2015-12-23T16:25:56.760Z"
36
- }
37
- ]
38
- ```
39
-
40
- ## Get trigger details
41
-
42
- Get details of project's build trigger.
43
-
44
- ```
45
- GET /projects/:id/triggers/:token
46
- ```
47
-
48
- | Attribute | Type | required | Description |
49
- |-----------|---------|----------|--------------------------|
50
- | `id` | integer | yes | The ID of a project |
51
- | `token` | string | yes | The `token` of a trigger |
52
-
53
- ```
54
- curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/triggers/7b9148c158980bbd9bcea92c17522d"
55
- ```
56
-
57
- ```json
58
- {
59
- "created_at": "2015-12-23T16:25:56.760Z",
60
- "deleted_at": null,
61
- "last_used": null,
62
- "token": "7b9148c158980bbd9bcea92c17522d",
63
- "updated_at": "2015-12-23T16:25:56.760Z"
64
- }
65
- ```
66
-
67
- ## Create a project trigger
68
-
69
- Create a build trigger for a project.
70
-
71
- ```
72
- POST /projects/:id/triggers
73
- ```
74
-
75
- | Attribute | Type | required | Description |
76
- |-----------|---------|----------|--------------------------|
77
- | `id` | integer | yes | The ID of a project |
78
-
79
- ```
80
- curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/triggers"
81
- ```
82
-
83
- ```json
84
- {
85
- "created_at": "2016-01-07T09:53:58.235Z",
86
- "deleted_at": null,
87
- "last_used": null,
88
- "token": "6d056f63e50fe6f8c5f8f4aa10edb7",
89
- "updated_at": "2016-01-07T09:53:58.235Z"
90
- }
91
- ```
92
-
93
- ## Remove a project trigger
94
-
95
- Remove a project's build trigger.
96
-
97
- ```
98
- DELETE /projects/:id/triggers/:token
99
- ```
100
-
101
- | Attribute | Type | required | Description |
102
- |-----------|---------|----------|--------------------------|
103
- | `id` | integer | yes | The ID of a project |
104
- | `token` | string | yes | The `token` of a trigger |
105
-
106
- ```
107
- curl --request DELETE --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/triggers/7b9148c158980bbd9bcea92c17522d"
108
- ```
109
-
110
- ```json
111
- {
112
- "created_at": "2015-12-23T16:25:56.760Z",
113
- "deleted_at": "2015-12-24T12:32:20.100Z",
114
- "last_used": null,
115
- "token": "7b9148c158980bbd9bcea92c17522d",
116
- "updated_at": "2015-12-24T12:32:20.100Z"
117
- }
118
- ```
@@ -1,128 +0,0 @@
1
- # Build Variables
2
-
3
- ## List project variables
4
-
5
- Get list of a project's build variables.
6
-
7
- ```
8
- GET /projects/:id/variables
9
- ```
10
-
11
- | Attribute | Type | required | Description |
12
- |-----------|---------|----------|---------------------|
13
- | `id` | integer | yes | The ID of a project |
14
-
15
- ```
16
- curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/variables"
17
- ```
18
-
19
- ```json
20
- [
21
- {
22
- "key": "TEST_VARIABLE_1",
23
- "value": "TEST_1"
24
- },
25
- {
26
- "key": "TEST_VARIABLE_2",
27
- "value": "TEST_2"
28
- }
29
- ]
30
- ```
31
-
32
- ## Show variable details
33
-
34
- Get the details of a project's specific build variable.
35
-
36
- ```
37
- GET /projects/:id/variables/:key
38
- ```
39
-
40
- | Attribute | Type | required | Description |
41
- |-----------|---------|----------|-----------------------|
42
- | `id` | integer | yes | The ID of a project |
43
- | `key` | string | yes | The `key` of a variable |
44
-
45
- ```
46
- curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/variables/TEST_VARIABLE_1"
47
- ```
48
-
49
- ```json
50
- {
51
- "key": "TEST_VARIABLE_1",
52
- "value": "TEST_1"
53
- }
54
- ```
55
-
56
- ## Create variable
57
-
58
- Create a new build variable.
59
-
60
- ```
61
- POST /projects/:id/variables
62
- ```
63
-
64
- | Attribute | Type | required | Description |
65
- |-----------|---------|----------|-----------------------|
66
- | `id` | integer | yes | The ID of a project |
67
- | `key` | string | yes | The `key` of a variable; must have no more than 255 characters; only `A-Z`, `a-z`, `0-9`, and `_` are allowed |
68
- | `value` | string | yes | The `value` of a variable |
69
-
70
- ```
71
- curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/variables" --form "key=NEW_VARIABLE" --form "value=new value"
72
- ```
73
-
74
- ```json
75
- {
76
- "key": "NEW_VARIABLE",
77
- "value": "new value"
78
- }
79
- ```
80
-
81
- ## Update variable
82
-
83
- Update a project's build variable.
84
-
85
- ```
86
- PUT /projects/:id/variables/:key
87
- ```
88
-
89
- | Attribute | Type | required | Description |
90
- |-----------|---------|----------|-------------------------|
91
- | `id` | integer | yes | The ID of a project |
92
- | `key` | string | yes | The `key` of a variable |
93
- | `value` | string | yes | The `value` of a variable |
94
-
95
- ```
96
- curl --request PUT --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/variables/NEW_VARIABLE" --form "value=updated value"
97
- ```
98
-
99
- ```json
100
- {
101
- "key": "NEW_VARIABLE",
102
- "value": "updated value"
103
- }
104
- ```
105
-
106
- ## Remove variable
107
-
108
- Remove a project's build variable.
109
-
110
- ```
111
- DELETE /projects/:id/variables/:key
112
- ```
113
-
114
- | Attribute | Type | required | Description |
115
- |-----------|---------|----------|-------------------------|
116
- | `id` | integer | yes | The ID of a project |
117
- | `key` | string | yes | The `key` of a variable |
118
-
119
- ```
120
- curl --request DELETE --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/variables/VARIABLE_1"
121
- ```
122
-
123
- ```json
124
- {
125
- "key": "VARIABLE_1",
126
- "value": "VALUE_1"
127
- }
128
- ```