gitabu 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/.rubocop.yml +33 -0
  4. data/CHANGELOG.md +3 -0
  5. data/Gemfile +10 -0
  6. data/Gemfile.lock +65 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +42 -0
  9. data/Rakefile +12 -0
  10. data/gitabu.gemspec +41 -0
  11. data/lib/gitabu/api/v3/actions.rb +3724 -0
  12. data/lib/gitabu/api/v3/activity.rb +835 -0
  13. data/lib/gitabu/api/v3/apps.rb +961 -0
  14. data/lib/gitabu/api/v3/billing.rb +217 -0
  15. data/lib/gitabu/api/v3/branches.rb +1098 -0
  16. data/lib/gitabu/api/v3/checks.rb +384 -0
  17. data/lib/gitabu/api/v3/code_scanning.rb +315 -0
  18. data/lib/gitabu/api/v3/codes_of_conduct.rb +92 -0
  19. data/lib/gitabu/api/v3/codespaces.rb +650 -0
  20. data/lib/gitabu/api/v3/collaborators.rb +341 -0
  21. data/lib/gitabu/api/v3/commits.rb +428 -0
  22. data/lib/gitabu/api/v3/dependabot.rb +419 -0
  23. data/lib/gitabu/api/v3/deploy_keys.rb +152 -0
  24. data/lib/gitabu/api/v3/deployments.rb +356 -0
  25. data/lib/gitabu/api/v3/emojis.rb +67 -0
  26. data/lib/gitabu/api/v3/enterprise_admin.rb +495 -0
  27. data/lib/gitabu/api/v3/gists.rb +552 -0
  28. data/lib/gitabu/api/v3/git.rb +409 -0
  29. data/lib/gitabu/api/v3/gitignore.rb +92 -0
  30. data/lib/gitabu/api/v3/interactions.rb +275 -0
  31. data/lib/gitabu/api/v3/issues.rb +1119 -0
  32. data/lib/gitabu/api/v3/licenses.rb +118 -0
  33. data/lib/gitabu/api/v3/markdown.rb +94 -0
  34. data/lib/gitabu/api/v3/meta.rb +142 -0
  35. data/lib/gitabu/api/v3/metrics.rb +302 -0
  36. data/lib/gitabu/api/v3/migrations.rb +631 -0
  37. data/lib/gitabu/api/v3/orgs.rb +1291 -0
  38. data/lib/gitabu/api/v3/packages.rb +686 -0
  39. data/lib/gitabu/api/v3/pages.rb +282 -0
  40. data/lib/gitabu/api/v3/projects.rb +693 -0
  41. data/lib/gitabu/api/v3/pulls.rb +816 -0
  42. data/lib/gitabu/api/v3/rate_limit.rb +67 -0
  43. data/lib/gitabu/api/v3/reactions.rb +734 -0
  44. data/lib/gitabu/api/v3/releases.rb +411 -0
  45. data/lib/gitabu/api/v3/repos.rb +1136 -0
  46. data/lib/gitabu/api/v3/scim.rb +214 -0
  47. data/lib/gitabu/api/v3/search.rb +217 -0
  48. data/lib/gitabu/api/v3/secret_scanning.rb +201 -0
  49. data/lib/gitabu/api/v3/teams.rb +1963 -0
  50. data/lib/gitabu/api/v3/users.rb +851 -0
  51. data/lib/gitabu/api/v3/webhooks.rb +379 -0
  52. data/lib/gitabu/builder.rb +37 -0
  53. data/lib/gitabu/client.rb +8 -0
  54. data/lib/gitabu/generator.rb +75 -0
  55. data/lib/gitabu/http_client.rb +96 -0
  56. data/lib/gitabu/items.rb +110 -0
  57. data/lib/gitabu/public/api/v3/actions.json +5779 -0
  58. data/lib/gitabu/public/api/v3/activity.json +1248 -0
  59. data/lib/gitabu/public/api/v3/apps.json +1174 -0
  60. data/lib/gitabu/public/api/v3/billing.json +183 -0
  61. data/lib/gitabu/public/api/v3/branches.json +1886 -0
  62. data/lib/gitabu/public/api/v3/checks.json +856 -0
  63. data/lib/gitabu/public/api/v3/code_scanning.json +666 -0
  64. data/lib/gitabu/public/api/v3/codes_of_conduct.json +41 -0
  65. data/lib/gitabu/public/api/v3/codespaces.json +884 -0
  66. data/lib/gitabu/public/api/v3/collaborators.json +464 -0
  67. data/lib/gitabu/public/api/v3/commits.json +830 -0
  68. data/lib/gitabu/public/api/v3/dependabot.json +596 -0
  69. data/lib/gitabu/public/api/v3/deploy_keys.json +195 -0
  70. data/lib/gitabu/public/api/v3/deployments.json +698 -0
  71. data/lib/gitabu/public/api/v3/emojis.json +18 -0
  72. data/lib/gitabu/public/api/v3/enterprise_admin.json +881 -0
  73. data/lib/gitabu/public/api/v3/gists.json +689 -0
  74. data/lib/gitabu/public/api/v3/git.json +735 -0
  75. data/lib/gitabu/public/api/v3/gitignore.json +41 -0
  76. data/lib/gitabu/public/api/v3/interactions.json +265 -0
  77. data/lib/gitabu/public/api/v3/issues.json +2359 -0
  78. data/lib/gitabu/public/api/v3/licenses.json +100 -0
  79. data/lib/gitabu/public/api/v3/markdown.json +59 -0
  80. data/lib/gitabu/public/api/v3/meta.json +69 -0
  81. data/lib/gitabu/public/api/v3/metrics.json +342 -0
  82. data/lib/gitabu/public/api/v3/migrations.json +960 -0
  83. data/lib/gitabu/public/api/v3/orgs.json +1989 -0
  84. data/lib/gitabu/public/api/v3/packages.json +1078 -0
  85. data/lib/gitabu/public/api/v3/pages.json +373 -0
  86. data/lib/gitabu/public/api/v3/projects.json +966 -0
  87. data/lib/gitabu/public/api/v3/pulls.json +1768 -0
  88. data/lib/gitabu/public/api/v3/rate_limit.json +18 -0
  89. data/lib/gitabu/public/api/v3/reactions.json +1425 -0
  90. data/lib/gitabu/public/api/v3/releases.json +753 -0
  91. data/lib/gitabu/public/api/v3/repos.json +2314 -0
  92. data/lib/gitabu/public/api/v3/scim.json +412 -0
  93. data/lib/gitabu/public/api/v3/search.json +408 -0
  94. data/lib/gitabu/public/api/v3/secret_scanning.json +385 -0
  95. data/lib/gitabu/public/api/v3/teams.json +3126 -0
  96. data/lib/gitabu/public/api/v3/users.json +956 -0
  97. data/lib/gitabu/public/api/v3/webhooks.json +667 -0
  98. data/lib/gitabu/run.rb +237 -0
  99. data/lib/gitabu/scraper.rb +86 -0
  100. data/lib/gitabu/templates/template.rb.erb +70 -0
  101. data/lib/gitabu/version.rb +6 -0
  102. data/lib/gitabu.rb +57 -0
  103. data/sig/gitabu.rbs +4 -0
  104. metadata +177 -0
@@ -0,0 +1,3126 @@
1
+ {
2
+ "result": [
3
+ {
4
+ "namespace_description": "List teams",
5
+ "method": "get",
6
+ "endpoint": "/orgs/{org}/teams",
7
+ "field_0": {
8
+ "field_type": "header",
9
+ "fields": {
10
+ "name": "accept",
11
+ "type": "string",
12
+ "in": "header",
13
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
14
+ }
15
+ },
16
+ "field_1": {
17
+ "field_type": "path",
18
+ "fields": {
19
+ "name": "org",
20
+ "type": "string",
21
+ "in": "path",
22
+ "description": ""
23
+ }
24
+ },
25
+ "field_2": {
26
+ "field_type": "query",
27
+ "fields": {
28
+ "name": "per_page",
29
+ "type": "integer",
30
+ "in": "query",
31
+ "description": "Results per page (max 100)Default: 30"
32
+ }
33
+ },
34
+ "field_3": {
35
+ "field_type": "query",
36
+ "fields": {
37
+ "name": "page",
38
+ "type": "integer",
39
+ "in": "query",
40
+ "description": "Page number of the results to fetch.Default: 1"
41
+ }
42
+ }
43
+ },
44
+ {
45
+ "namespace_description": "Create a team",
46
+ "method": "post",
47
+ "endpoint": "/orgs/{org}/teams",
48
+ "field_0": {
49
+ "field_type": "header",
50
+ "fields": {
51
+ "name": "accept",
52
+ "type": "string",
53
+ "in": "header",
54
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
55
+ }
56
+ },
57
+ "field_1": {
58
+ "field_type": "path",
59
+ "fields": {
60
+ "name": "org",
61
+ "type": "string",
62
+ "in": "path",
63
+ "description": ""
64
+ }
65
+ },
66
+ "field_2": {
67
+ "field_type": "body",
68
+ "fields": {
69
+ "name": "name",
70
+ "type": "string",
71
+ "in": "body",
72
+ "description": "Required. The name of the team."
73
+ }
74
+ },
75
+ "field_3": {
76
+ "field_type": "body",
77
+ "fields": {
78
+ "name": "description",
79
+ "type": "string",
80
+ "in": "body",
81
+ "description": "The description of the team."
82
+ }
83
+ },
84
+ "field_4": {
85
+ "field_type": "body",
86
+ "fields": {
87
+ "name": "maintainers",
88
+ "type": "array of strings",
89
+ "in": "body",
90
+ "description": "List GitHub IDs for organization members who will become team maintainers."
91
+ }
92
+ },
93
+ "field_5": {
94
+ "field_type": "body",
95
+ "fields": {
96
+ "name": "repo_names",
97
+ "type": "array of strings",
98
+ "in": "body",
99
+ "description": "The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to."
100
+ }
101
+ },
102
+ "field_6": {
103
+ "field_type": "body",
104
+ "fields": {
105
+ "name": "privacy",
106
+ "type": "string",
107
+ "in": "body",
108
+ "description": "The level of privacy this team should have. The options are:\nFor a non-nested team:\n* secret - only visible to organization owners and members of this team.\n* closed - visible to all members of this organization.\nDefault: secret\nFor a parent or child team:\n* closed - visible to all members of this organization.\nDefault for child team: closed"
109
+ }
110
+ },
111
+ "field_7": {
112
+ "field_type": "body",
113
+ "fields": {
114
+ "name": "permission",
115
+ "type": "string",
116
+ "in": "body",
117
+ "description": "Deprecated. The permission that new repositories will be added to the team with when none is specified. Can be one of:\n* pull - team members can pull, but not push to or administer newly-added repositories.\n* push - team members can pull and push, but not administer newly-added repositories.Default: pull"
118
+ }
119
+ },
120
+ "field_8": {
121
+ "field_type": "body",
122
+ "fields": {
123
+ "name": "parent_team_id",
124
+ "type": "integer",
125
+ "in": "body",
126
+ "description": "The ID of a team to set as the parent team."
127
+ }
128
+ }
129
+ },
130
+ {
131
+ "namespace_description": "Get a team by name",
132
+ "method": "get",
133
+ "endpoint": "/orgs/{org}/teams/{team_slug}",
134
+ "field_0": {
135
+ "field_type": "header",
136
+ "fields": {
137
+ "name": "accept",
138
+ "type": "string",
139
+ "in": "header",
140
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
141
+ }
142
+ },
143
+ "field_1": {
144
+ "field_type": "path",
145
+ "fields": {
146
+ "name": "org",
147
+ "type": "string",
148
+ "in": "path",
149
+ "description": ""
150
+ }
151
+ },
152
+ "field_2": {
153
+ "field_type": "path",
154
+ "fields": {
155
+ "name": "team_slug",
156
+ "type": "string",
157
+ "in": "path",
158
+ "description": "team_slug parameter"
159
+ }
160
+ }
161
+ },
162
+ {
163
+ "namespace_description": "Update a team",
164
+ "method": "patch",
165
+ "endpoint": "/orgs/{org}/teams/{team_slug}",
166
+ "field_0": {
167
+ "field_type": "header",
168
+ "fields": {
169
+ "name": "accept",
170
+ "type": "string",
171
+ "in": "header",
172
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
173
+ }
174
+ },
175
+ "field_1": {
176
+ "field_type": "path",
177
+ "fields": {
178
+ "name": "org",
179
+ "type": "string",
180
+ "in": "path",
181
+ "description": ""
182
+ }
183
+ },
184
+ "field_2": {
185
+ "field_type": "path",
186
+ "fields": {
187
+ "name": "team_slug",
188
+ "type": "string",
189
+ "in": "path",
190
+ "description": "team_slug parameter"
191
+ }
192
+ },
193
+ "field_3": {
194
+ "field_type": "body",
195
+ "fields": {
196
+ "name": "name",
197
+ "type": "string",
198
+ "in": "body",
199
+ "description": "The name of the team."
200
+ }
201
+ },
202
+ "field_4": {
203
+ "field_type": "body",
204
+ "fields": {
205
+ "name": "description",
206
+ "type": "string",
207
+ "in": "body",
208
+ "description": "The description of the team."
209
+ }
210
+ },
211
+ "field_5": {
212
+ "field_type": "body",
213
+ "fields": {
214
+ "name": "privacy",
215
+ "type": "string",
216
+ "in": "body",
217
+ "description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves privacy intact. When a team is nested, the privacy for parent teams cannot be secret. The options are:\nFor a non-nested team:\n* secret - only visible to organization owners and members of this team.\n* closed - visible to all members of this organization.\nFor a parent or child team:\n* closed - visible to all members of this organization."
218
+ }
219
+ },
220
+ "field_6": {
221
+ "field_type": "body",
222
+ "fields": {
223
+ "name": "permission",
224
+ "type": "string",
225
+ "in": "body",
226
+ "description": "Deprecated. The permission that new repositories will be added to the team with when none is specified. Can be one of:\n* pull - team members can pull, but not push to or administer newly-added repositories.\n* push - team members can pull and push, but not administer newly-added repositories.\n* admin - team members can pull, push and administer newly-added repositories.Default: pull"
227
+ }
228
+ },
229
+ "field_7": {
230
+ "field_type": "body",
231
+ "fields": {
232
+ "name": "parent_team_id",
233
+ "type": "integer or null",
234
+ "in": "body",
235
+ "description": "The ID of a team to set as the parent team."
236
+ }
237
+ }
238
+ },
239
+ {
240
+ "namespace_description": "Delete a team",
241
+ "method": "delete",
242
+ "endpoint": "/orgs/{org}/teams/{team_slug}",
243
+ "field_0": {
244
+ "field_type": "header",
245
+ "fields": {
246
+ "name": "accept",
247
+ "type": "string",
248
+ "in": "header",
249
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
250
+ }
251
+ },
252
+ "field_1": {
253
+ "field_type": "path",
254
+ "fields": {
255
+ "name": "org",
256
+ "type": "string",
257
+ "in": "path",
258
+ "description": ""
259
+ }
260
+ },
261
+ "field_2": {
262
+ "field_type": "path",
263
+ "fields": {
264
+ "name": "team_slug",
265
+ "type": "string",
266
+ "in": "path",
267
+ "description": "team_slug parameter"
268
+ }
269
+ }
270
+ },
271
+ {
272
+ "namespace_description": "List team projects",
273
+ "method": "get",
274
+ "endpoint": "/orgs/{org}/teams/{team_slug}/projects",
275
+ "field_0": {
276
+ "field_type": "header",
277
+ "fields": {
278
+ "name": "accept",
279
+ "type": "string",
280
+ "in": "header",
281
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
282
+ }
283
+ },
284
+ "field_1": {
285
+ "field_type": "path",
286
+ "fields": {
287
+ "name": "org",
288
+ "type": "string",
289
+ "in": "path",
290
+ "description": ""
291
+ }
292
+ },
293
+ "field_2": {
294
+ "field_type": "path",
295
+ "fields": {
296
+ "name": "team_slug",
297
+ "type": "string",
298
+ "in": "path",
299
+ "description": "team_slug parameter"
300
+ }
301
+ },
302
+ "field_3": {
303
+ "field_type": "query",
304
+ "fields": {
305
+ "name": "per_page",
306
+ "type": "integer",
307
+ "in": "query",
308
+ "description": "Results per page (max 100)Default: 30"
309
+ }
310
+ },
311
+ "field_4": {
312
+ "field_type": "query",
313
+ "fields": {
314
+ "name": "page",
315
+ "type": "integer",
316
+ "in": "query",
317
+ "description": "Page number of the results to fetch.Default: 1"
318
+ }
319
+ }
320
+ },
321
+ {
322
+ "namespace_description": "Check team permissions for a project",
323
+ "method": "get",
324
+ "endpoint": "/orgs/{org}/teams/{team_slug}/projects/{project_id}",
325
+ "field_0": {
326
+ "field_type": "header",
327
+ "fields": {
328
+ "name": "accept",
329
+ "type": "string",
330
+ "in": "header",
331
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
332
+ }
333
+ },
334
+ "field_1": {
335
+ "field_type": "path",
336
+ "fields": {
337
+ "name": "org",
338
+ "type": "string",
339
+ "in": "path",
340
+ "description": ""
341
+ }
342
+ },
343
+ "field_2": {
344
+ "field_type": "path",
345
+ "fields": {
346
+ "name": "team_slug",
347
+ "type": "string",
348
+ "in": "path",
349
+ "description": "team_slug parameter"
350
+ }
351
+ },
352
+ "field_3": {
353
+ "field_type": "path",
354
+ "fields": {
355
+ "name": "project_id",
356
+ "type": "integer",
357
+ "in": "path",
358
+ "description": ""
359
+ }
360
+ }
361
+ },
362
+ {
363
+ "namespace_description": "Add or update team project permissions",
364
+ "method": "put",
365
+ "endpoint": "/orgs/{org}/teams/{team_slug}/projects/{project_id}",
366
+ "field_0": {
367
+ "field_type": "header",
368
+ "fields": {
369
+ "name": "accept",
370
+ "type": "string",
371
+ "in": "header",
372
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
373
+ }
374
+ },
375
+ "field_1": {
376
+ "field_type": "path",
377
+ "fields": {
378
+ "name": "org",
379
+ "type": "string",
380
+ "in": "path",
381
+ "description": ""
382
+ }
383
+ },
384
+ "field_2": {
385
+ "field_type": "path",
386
+ "fields": {
387
+ "name": "team_slug",
388
+ "type": "string",
389
+ "in": "path",
390
+ "description": "team_slug parameter"
391
+ }
392
+ },
393
+ "field_3": {
394
+ "field_type": "path",
395
+ "fields": {
396
+ "name": "project_id",
397
+ "type": "integer",
398
+ "in": "path",
399
+ "description": ""
400
+ }
401
+ },
402
+ "field_4": {
403
+ "field_type": "body",
404
+ "fields": {
405
+ "name": "permission",
406
+ "type": "string",
407
+ "in": "body",
408
+ "description": "The permission to grant to the team for this project. Can be one of:\n* read - team members can read, but not write to or administer this project.\n* write - team members can read and write, but not administer this project.\n* admin - team members can read, write and administer this project.\nDefault: the team's permission attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set Content-Length to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\""
409
+ }
410
+ }
411
+ },
412
+ {
413
+ "namespace_description": "Remove a project from a team",
414
+ "method": "delete",
415
+ "endpoint": "/orgs/{org}/teams/{team_slug}/projects/{project_id}",
416
+ "field_0": {
417
+ "field_type": "header",
418
+ "fields": {
419
+ "name": "accept",
420
+ "type": "string",
421
+ "in": "header",
422
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
423
+ }
424
+ },
425
+ "field_1": {
426
+ "field_type": "path",
427
+ "fields": {
428
+ "name": "org",
429
+ "type": "string",
430
+ "in": "path",
431
+ "description": ""
432
+ }
433
+ },
434
+ "field_2": {
435
+ "field_type": "path",
436
+ "fields": {
437
+ "name": "team_slug",
438
+ "type": "string",
439
+ "in": "path",
440
+ "description": "team_slug parameter"
441
+ }
442
+ },
443
+ "field_3": {
444
+ "field_type": "path",
445
+ "fields": {
446
+ "name": "project_id",
447
+ "type": "integer",
448
+ "in": "path",
449
+ "description": ""
450
+ }
451
+ }
452
+ },
453
+ {
454
+ "namespace_description": "List team repositories",
455
+ "method": "get",
456
+ "endpoint": "/orgs/{org}/teams/{team_slug}/repos",
457
+ "field_0": {
458
+ "field_type": "header",
459
+ "fields": {
460
+ "name": "accept",
461
+ "type": "string",
462
+ "in": "header",
463
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
464
+ }
465
+ },
466
+ "field_1": {
467
+ "field_type": "path",
468
+ "fields": {
469
+ "name": "org",
470
+ "type": "string",
471
+ "in": "path",
472
+ "description": ""
473
+ }
474
+ },
475
+ "field_2": {
476
+ "field_type": "path",
477
+ "fields": {
478
+ "name": "team_slug",
479
+ "type": "string",
480
+ "in": "path",
481
+ "description": "team_slug parameter"
482
+ }
483
+ },
484
+ "field_3": {
485
+ "field_type": "query",
486
+ "fields": {
487
+ "name": "per_page",
488
+ "type": "integer",
489
+ "in": "query",
490
+ "description": "Results per page (max 100)Default: 30"
491
+ }
492
+ },
493
+ "field_4": {
494
+ "field_type": "query",
495
+ "fields": {
496
+ "name": "page",
497
+ "type": "integer",
498
+ "in": "query",
499
+ "description": "Page number of the results to fetch.Default: 1"
500
+ }
501
+ }
502
+ },
503
+ {
504
+ "namespace_description": "Check team permissions for a repository",
505
+ "method": "get",
506
+ "endpoint": "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}",
507
+ "field_0": {
508
+ "field_type": "header",
509
+ "fields": {
510
+ "name": "accept",
511
+ "type": "string",
512
+ "in": "header",
513
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
514
+ }
515
+ },
516
+ "field_1": {
517
+ "field_type": "path",
518
+ "fields": {
519
+ "name": "org",
520
+ "type": "string",
521
+ "in": "path",
522
+ "description": ""
523
+ }
524
+ },
525
+ "field_2": {
526
+ "field_type": "path",
527
+ "fields": {
528
+ "name": "team_slug",
529
+ "type": "string",
530
+ "in": "path",
531
+ "description": "team_slug parameter"
532
+ }
533
+ },
534
+ "field_3": {
535
+ "field_type": "path",
536
+ "fields": {
537
+ "name": "owner",
538
+ "type": "string",
539
+ "in": "path",
540
+ "description": ""
541
+ }
542
+ },
543
+ "field_4": {
544
+ "field_type": "path",
545
+ "fields": {
546
+ "name": "repo",
547
+ "type": "string",
548
+ "in": "path",
549
+ "description": ""
550
+ }
551
+ }
552
+ },
553
+ {
554
+ "namespace_description": "Add or update team repository permissions",
555
+ "method": "put",
556
+ "endpoint": "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}",
557
+ "field_0": {
558
+ "field_type": "header",
559
+ "fields": {
560
+ "name": "accept",
561
+ "type": "string",
562
+ "in": "header",
563
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
564
+ }
565
+ },
566
+ "field_1": {
567
+ "field_type": "path",
568
+ "fields": {
569
+ "name": "org",
570
+ "type": "string",
571
+ "in": "path",
572
+ "description": ""
573
+ }
574
+ },
575
+ "field_2": {
576
+ "field_type": "path",
577
+ "fields": {
578
+ "name": "team_slug",
579
+ "type": "string",
580
+ "in": "path",
581
+ "description": "team_slug parameter"
582
+ }
583
+ },
584
+ "field_3": {
585
+ "field_type": "path",
586
+ "fields": {
587
+ "name": "owner",
588
+ "type": "string",
589
+ "in": "path",
590
+ "description": ""
591
+ }
592
+ },
593
+ "field_4": {
594
+ "field_type": "path",
595
+ "fields": {
596
+ "name": "repo",
597
+ "type": "string",
598
+ "in": "path",
599
+ "description": ""
600
+ }
601
+ },
602
+ "field_5": {
603
+ "field_type": "body",
604
+ "fields": {
605
+ "name": "permission",
606
+ "type": "string",
607
+ "in": "body",
608
+ "description": "The permission to grant the team on this repository. Can be one of:\n* pull - team members can pull, but not push to or administer this repository.\n* push - team members can pull and push, but not administer this repository.\n* admin - team members can pull, push and administer this repository.\n* maintain - team members can manage the repository without access to sensitive or destructive actions. Recommended for project managers. Only applies to repositories owned by organizations.\n* triage - team members can proactively manage issues and pull requests without write access. Recommended for contributors who triage a repository. Only applies to repositories owned by organizations.\n* custom repository role name - A custom repository role if the owning organization has defined any. \nIf no permission is specified, the team's permission attribute will be used to determine what permission to grant the team on this repository.Default: push"
609
+ }
610
+ }
611
+ },
612
+ {
613
+ "namespace_description": "Remove a repository from a team",
614
+ "method": "delete",
615
+ "endpoint": "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}",
616
+ "field_0": {
617
+ "field_type": "header",
618
+ "fields": {
619
+ "name": "accept",
620
+ "type": "string",
621
+ "in": "header",
622
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
623
+ }
624
+ },
625
+ "field_1": {
626
+ "field_type": "path",
627
+ "fields": {
628
+ "name": "org",
629
+ "type": "string",
630
+ "in": "path",
631
+ "description": ""
632
+ }
633
+ },
634
+ "field_2": {
635
+ "field_type": "path",
636
+ "fields": {
637
+ "name": "team_slug",
638
+ "type": "string",
639
+ "in": "path",
640
+ "description": "team_slug parameter"
641
+ }
642
+ },
643
+ "field_3": {
644
+ "field_type": "path",
645
+ "fields": {
646
+ "name": "owner",
647
+ "type": "string",
648
+ "in": "path",
649
+ "description": ""
650
+ }
651
+ },
652
+ "field_4": {
653
+ "field_type": "path",
654
+ "fields": {
655
+ "name": "repo",
656
+ "type": "string",
657
+ "in": "path",
658
+ "description": ""
659
+ }
660
+ }
661
+ },
662
+ {
663
+ "namespace_description": "List child teams",
664
+ "method": "get",
665
+ "endpoint": "/orgs/{org}/teams/{team_slug}/teams",
666
+ "field_0": {
667
+ "field_type": "header",
668
+ "fields": {
669
+ "name": "accept",
670
+ "type": "string",
671
+ "in": "header",
672
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
673
+ }
674
+ },
675
+ "field_1": {
676
+ "field_type": "path",
677
+ "fields": {
678
+ "name": "org",
679
+ "type": "string",
680
+ "in": "path",
681
+ "description": ""
682
+ }
683
+ },
684
+ "field_2": {
685
+ "field_type": "path",
686
+ "fields": {
687
+ "name": "team_slug",
688
+ "type": "string",
689
+ "in": "path",
690
+ "description": "team_slug parameter"
691
+ }
692
+ },
693
+ "field_3": {
694
+ "field_type": "query",
695
+ "fields": {
696
+ "name": "per_page",
697
+ "type": "integer",
698
+ "in": "query",
699
+ "description": "Results per page (max 100)Default: 30"
700
+ }
701
+ },
702
+ "field_4": {
703
+ "field_type": "query",
704
+ "fields": {
705
+ "name": "page",
706
+ "type": "integer",
707
+ "in": "query",
708
+ "description": "Page number of the results to fetch.Default: 1"
709
+ }
710
+ }
711
+ },
712
+ {
713
+ "namespace_description": "Get a team (Legacy)",
714
+ "method": "get",
715
+ "endpoint": "/teams/{team_id}",
716
+ "field_0": {
717
+ "field_type": "header",
718
+ "fields": {
719
+ "name": "accept",
720
+ "type": "string",
721
+ "in": "header",
722
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
723
+ }
724
+ },
725
+ "field_1": {
726
+ "field_type": "path",
727
+ "fields": {
728
+ "name": "team_id",
729
+ "type": "integer",
730
+ "in": "path",
731
+ "description": ""
732
+ }
733
+ }
734
+ },
735
+ {
736
+ "namespace_description": "Update a team (Legacy)",
737
+ "method": "patch",
738
+ "endpoint": "/teams/{team_id}",
739
+ "field_0": {
740
+ "field_type": "header",
741
+ "fields": {
742
+ "name": "accept",
743
+ "type": "string",
744
+ "in": "header",
745
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
746
+ }
747
+ },
748
+ "field_1": {
749
+ "field_type": "path",
750
+ "fields": {
751
+ "name": "team_id",
752
+ "type": "integer",
753
+ "in": "path",
754
+ "description": ""
755
+ }
756
+ },
757
+ "field_2": {
758
+ "field_type": "body",
759
+ "fields": {
760
+ "name": "name",
761
+ "type": "string",
762
+ "in": "body",
763
+ "description": "Required. The name of the team."
764
+ }
765
+ },
766
+ "field_3": {
767
+ "field_type": "body",
768
+ "fields": {
769
+ "name": "description",
770
+ "type": "string",
771
+ "in": "body",
772
+ "description": "The description of the team."
773
+ }
774
+ },
775
+ "field_4": {
776
+ "field_type": "body",
777
+ "fields": {
778
+ "name": "privacy",
779
+ "type": "string",
780
+ "in": "body",
781
+ "description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves privacy intact. The options are:\nFor a non-nested team:\n* secret - only visible to organization owners and members of this team.\n* closed - visible to all members of this organization.\nFor a parent or child team:\n* closed - visible to all members of this organization."
782
+ }
783
+ },
784
+ "field_5": {
785
+ "field_type": "body",
786
+ "fields": {
787
+ "name": "permission",
788
+ "type": "string",
789
+ "in": "body",
790
+ "description": "Deprecated. The permission that new repositories will be added to the team with when none is specified. Can be one of:\n* pull - team members can pull, but not push to or administer newly-added repositories.\n* push - team members can pull and push, but not administer newly-added repositories.\n* admin - team members can pull, push and administer newly-added repositories.Default: pull"
791
+ }
792
+ },
793
+ "field_6": {
794
+ "field_type": "body",
795
+ "fields": {
796
+ "name": "parent_team_id",
797
+ "type": "integer or null",
798
+ "in": "body",
799
+ "description": "The ID of a team to set as the parent team."
800
+ }
801
+ }
802
+ },
803
+ {
804
+ "namespace_description": "Delete a team (Legacy)",
805
+ "method": "delete",
806
+ "endpoint": "/teams/{team_id}",
807
+ "field_0": {
808
+ "field_type": "header",
809
+ "fields": {
810
+ "name": "accept",
811
+ "type": "string",
812
+ "in": "header",
813
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
814
+ }
815
+ },
816
+ "field_1": {
817
+ "field_type": "path",
818
+ "fields": {
819
+ "name": "team_id",
820
+ "type": "integer",
821
+ "in": "path",
822
+ "description": ""
823
+ }
824
+ }
825
+ },
826
+ {
827
+ "namespace_description": "List team projects (Legacy)",
828
+ "method": "get",
829
+ "endpoint": "/teams/{team_id}/projects",
830
+ "field_0": {
831
+ "field_type": "header",
832
+ "fields": {
833
+ "name": "accept",
834
+ "type": "string",
835
+ "in": "header",
836
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
837
+ }
838
+ },
839
+ "field_1": {
840
+ "field_type": "path",
841
+ "fields": {
842
+ "name": "team_id",
843
+ "type": "integer",
844
+ "in": "path",
845
+ "description": ""
846
+ }
847
+ },
848
+ "field_2": {
849
+ "field_type": "query",
850
+ "fields": {
851
+ "name": "per_page",
852
+ "type": "integer",
853
+ "in": "query",
854
+ "description": "Results per page (max 100)Default: 30"
855
+ }
856
+ },
857
+ "field_3": {
858
+ "field_type": "query",
859
+ "fields": {
860
+ "name": "page",
861
+ "type": "integer",
862
+ "in": "query",
863
+ "description": "Page number of the results to fetch.Default: 1"
864
+ }
865
+ }
866
+ },
867
+ {
868
+ "namespace_description": "Check team permissions for a project (Legacy)",
869
+ "method": "get",
870
+ "endpoint": "/teams/{team_id}/projects/{project_id}",
871
+ "field_0": {
872
+ "field_type": "header",
873
+ "fields": {
874
+ "name": "accept",
875
+ "type": "string",
876
+ "in": "header",
877
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
878
+ }
879
+ },
880
+ "field_1": {
881
+ "field_type": "path",
882
+ "fields": {
883
+ "name": "team_id",
884
+ "type": "integer",
885
+ "in": "path",
886
+ "description": ""
887
+ }
888
+ },
889
+ "field_2": {
890
+ "field_type": "path",
891
+ "fields": {
892
+ "name": "project_id",
893
+ "type": "integer",
894
+ "in": "path",
895
+ "description": ""
896
+ }
897
+ }
898
+ },
899
+ {
900
+ "namespace_description": "Add or update team project permissions (Legacy)",
901
+ "method": "put",
902
+ "endpoint": "/teams/{team_id}/projects/{project_id}",
903
+ "field_0": {
904
+ "field_type": "header",
905
+ "fields": {
906
+ "name": "accept",
907
+ "type": "string",
908
+ "in": "header",
909
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
910
+ }
911
+ },
912
+ "field_1": {
913
+ "field_type": "path",
914
+ "fields": {
915
+ "name": "team_id",
916
+ "type": "integer",
917
+ "in": "path",
918
+ "description": ""
919
+ }
920
+ },
921
+ "field_2": {
922
+ "field_type": "path",
923
+ "fields": {
924
+ "name": "project_id",
925
+ "type": "integer",
926
+ "in": "path",
927
+ "description": ""
928
+ }
929
+ },
930
+ "field_3": {
931
+ "field_type": "body",
932
+ "fields": {
933
+ "name": "permission",
934
+ "type": "string",
935
+ "in": "body",
936
+ "description": "The permission to grant to the team for this project. Can be one of:\n* read - team members can read, but not write to or administer this project.\n* write - team members can read and write, but not administer this project.\n* admin - team members can read, write and administer this project.\nDefault: the team's permission attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set Content-Length to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\""
937
+ }
938
+ }
939
+ },
940
+ {
941
+ "namespace_description": "Remove a project from a team (Legacy)",
942
+ "method": "delete",
943
+ "endpoint": "/teams/{team_id}/projects/{project_id}",
944
+ "field_0": {
945
+ "field_type": "header",
946
+ "fields": {
947
+ "name": "accept",
948
+ "type": "string",
949
+ "in": "header",
950
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
951
+ }
952
+ },
953
+ "field_1": {
954
+ "field_type": "path",
955
+ "fields": {
956
+ "name": "team_id",
957
+ "type": "integer",
958
+ "in": "path",
959
+ "description": ""
960
+ }
961
+ },
962
+ "field_2": {
963
+ "field_type": "path",
964
+ "fields": {
965
+ "name": "project_id",
966
+ "type": "integer",
967
+ "in": "path",
968
+ "description": ""
969
+ }
970
+ }
971
+ },
972
+ {
973
+ "namespace_description": "List team repositories (Legacy)",
974
+ "method": "get",
975
+ "endpoint": "/teams/{team_id}/repos",
976
+ "field_0": {
977
+ "field_type": "header",
978
+ "fields": {
979
+ "name": "accept",
980
+ "type": "string",
981
+ "in": "header",
982
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
983
+ }
984
+ },
985
+ "field_1": {
986
+ "field_type": "path",
987
+ "fields": {
988
+ "name": "team_id",
989
+ "type": "integer",
990
+ "in": "path",
991
+ "description": ""
992
+ }
993
+ },
994
+ "field_2": {
995
+ "field_type": "query",
996
+ "fields": {
997
+ "name": "per_page",
998
+ "type": "integer",
999
+ "in": "query",
1000
+ "description": "Results per page (max 100)Default: 30"
1001
+ }
1002
+ },
1003
+ "field_3": {
1004
+ "field_type": "query",
1005
+ "fields": {
1006
+ "name": "page",
1007
+ "type": "integer",
1008
+ "in": "query",
1009
+ "description": "Page number of the results to fetch.Default: 1"
1010
+ }
1011
+ }
1012
+ },
1013
+ {
1014
+ "namespace_description": "Check team permissions for a repository (Legacy)",
1015
+ "method": "get",
1016
+ "endpoint": "/teams/{team_id}/repos/{owner}/{repo}",
1017
+ "field_0": {
1018
+ "field_type": "header",
1019
+ "fields": {
1020
+ "name": "accept",
1021
+ "type": "string",
1022
+ "in": "header",
1023
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1024
+ }
1025
+ },
1026
+ "field_1": {
1027
+ "field_type": "path",
1028
+ "fields": {
1029
+ "name": "team_id",
1030
+ "type": "integer",
1031
+ "in": "path",
1032
+ "description": ""
1033
+ }
1034
+ },
1035
+ "field_2": {
1036
+ "field_type": "path",
1037
+ "fields": {
1038
+ "name": "owner",
1039
+ "type": "string",
1040
+ "in": "path",
1041
+ "description": ""
1042
+ }
1043
+ },
1044
+ "field_3": {
1045
+ "field_type": "path",
1046
+ "fields": {
1047
+ "name": "repo",
1048
+ "type": "string",
1049
+ "in": "path",
1050
+ "description": ""
1051
+ }
1052
+ }
1053
+ },
1054
+ {
1055
+ "namespace_description": "Add or update team repository permissions (Legacy)",
1056
+ "method": "put",
1057
+ "endpoint": "/teams/{team_id}/repos/{owner}/{repo}",
1058
+ "field_0": {
1059
+ "field_type": "header",
1060
+ "fields": {
1061
+ "name": "accept",
1062
+ "type": "string",
1063
+ "in": "header",
1064
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1065
+ }
1066
+ },
1067
+ "field_1": {
1068
+ "field_type": "path",
1069
+ "fields": {
1070
+ "name": "team_id",
1071
+ "type": "integer",
1072
+ "in": "path",
1073
+ "description": ""
1074
+ }
1075
+ },
1076
+ "field_2": {
1077
+ "field_type": "path",
1078
+ "fields": {
1079
+ "name": "owner",
1080
+ "type": "string",
1081
+ "in": "path",
1082
+ "description": ""
1083
+ }
1084
+ },
1085
+ "field_3": {
1086
+ "field_type": "path",
1087
+ "fields": {
1088
+ "name": "repo",
1089
+ "type": "string",
1090
+ "in": "path",
1091
+ "description": ""
1092
+ }
1093
+ },
1094
+ "field_4": {
1095
+ "field_type": "body",
1096
+ "fields": {
1097
+ "name": "permission",
1098
+ "type": "string",
1099
+ "in": "body",
1100
+ "description": "The permission to grant the team on this repository. Can be one of:\n* pull - team members can pull, but not push to or administer this repository.\n* push - team members can pull and push, but not administer this repository.\n* admin - team members can pull, push and administer this repository. \nIf no permission is specified, the team's permission attribute will be used to determine what permission to grant the team on this repository."
1101
+ }
1102
+ }
1103
+ },
1104
+ {
1105
+ "namespace_description": "Remove a repository from a team (Legacy)",
1106
+ "method": "delete",
1107
+ "endpoint": "/teams/{team_id}/repos/{owner}/{repo}",
1108
+ "field_0": {
1109
+ "field_type": "header",
1110
+ "fields": {
1111
+ "name": "accept",
1112
+ "type": "string",
1113
+ "in": "header",
1114
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1115
+ }
1116
+ },
1117
+ "field_1": {
1118
+ "field_type": "path",
1119
+ "fields": {
1120
+ "name": "team_id",
1121
+ "type": "integer",
1122
+ "in": "path",
1123
+ "description": ""
1124
+ }
1125
+ },
1126
+ "field_2": {
1127
+ "field_type": "path",
1128
+ "fields": {
1129
+ "name": "owner",
1130
+ "type": "string",
1131
+ "in": "path",
1132
+ "description": ""
1133
+ }
1134
+ },
1135
+ "field_3": {
1136
+ "field_type": "path",
1137
+ "fields": {
1138
+ "name": "repo",
1139
+ "type": "string",
1140
+ "in": "path",
1141
+ "description": ""
1142
+ }
1143
+ }
1144
+ },
1145
+ {
1146
+ "namespace_description": "List child teams (Legacy)",
1147
+ "method": "get",
1148
+ "endpoint": "/teams/{team_id}/teams",
1149
+ "field_0": {
1150
+ "field_type": "header",
1151
+ "fields": {
1152
+ "name": "accept",
1153
+ "type": "string",
1154
+ "in": "header",
1155
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1156
+ }
1157
+ },
1158
+ "field_1": {
1159
+ "field_type": "path",
1160
+ "fields": {
1161
+ "name": "team_id",
1162
+ "type": "integer",
1163
+ "in": "path",
1164
+ "description": ""
1165
+ }
1166
+ },
1167
+ "field_2": {
1168
+ "field_type": "query",
1169
+ "fields": {
1170
+ "name": "per_page",
1171
+ "type": "integer",
1172
+ "in": "query",
1173
+ "description": "Results per page (max 100)Default: 30"
1174
+ }
1175
+ },
1176
+ "field_3": {
1177
+ "field_type": "query",
1178
+ "fields": {
1179
+ "name": "page",
1180
+ "type": "integer",
1181
+ "in": "query",
1182
+ "description": "Page number of the results to fetch.Default: 1"
1183
+ }
1184
+ }
1185
+ },
1186
+ {
1187
+ "namespace_description": "List teams for the authenticated user",
1188
+ "method": "get",
1189
+ "endpoint": "/user/teams",
1190
+ "field_0": {
1191
+ "field_type": "header",
1192
+ "fields": {
1193
+ "name": "accept",
1194
+ "type": "string",
1195
+ "in": "header",
1196
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1197
+ }
1198
+ },
1199
+ "field_1": {
1200
+ "field_type": "query",
1201
+ "fields": {
1202
+ "name": "per_page",
1203
+ "type": "integer",
1204
+ "in": "query",
1205
+ "description": "Results per page (max 100)Default: 30"
1206
+ }
1207
+ },
1208
+ "field_2": {
1209
+ "field_type": "query",
1210
+ "fields": {
1211
+ "name": "page",
1212
+ "type": "integer",
1213
+ "in": "query",
1214
+ "description": "Page number of the results to fetch.Default: 1"
1215
+ }
1216
+ }
1217
+ },
1218
+ {
1219
+ "namespace_description": "List discussion comments",
1220
+ "method": "get",
1221
+ "endpoint": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments",
1222
+ "field_0": {
1223
+ "field_type": "header",
1224
+ "fields": {
1225
+ "name": "accept",
1226
+ "type": "string",
1227
+ "in": "header",
1228
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1229
+ }
1230
+ },
1231
+ "field_1": {
1232
+ "field_type": "path",
1233
+ "fields": {
1234
+ "name": "org",
1235
+ "type": "string",
1236
+ "in": "path",
1237
+ "description": ""
1238
+ }
1239
+ },
1240
+ "field_2": {
1241
+ "field_type": "path",
1242
+ "fields": {
1243
+ "name": "team_slug",
1244
+ "type": "string",
1245
+ "in": "path",
1246
+ "description": "team_slug parameter"
1247
+ }
1248
+ },
1249
+ "field_3": {
1250
+ "field_type": "path",
1251
+ "fields": {
1252
+ "name": "discussion_number",
1253
+ "type": "integer",
1254
+ "in": "path",
1255
+ "description": ""
1256
+ }
1257
+ },
1258
+ "field_4": {
1259
+ "field_type": "query",
1260
+ "fields": {
1261
+ "name": "direction",
1262
+ "type": "string",
1263
+ "in": "query",
1264
+ "description": "One of asc (ascending) or desc (descending).Default: desc"
1265
+ }
1266
+ },
1267
+ "field_5": {
1268
+ "field_type": "query",
1269
+ "fields": {
1270
+ "name": "per_page",
1271
+ "type": "integer",
1272
+ "in": "query",
1273
+ "description": "Results per page (max 100)Default: 30"
1274
+ }
1275
+ },
1276
+ "field_6": {
1277
+ "field_type": "query",
1278
+ "fields": {
1279
+ "name": "page",
1280
+ "type": "integer",
1281
+ "in": "query",
1282
+ "description": "Page number of the results to fetch.Default: 1"
1283
+ }
1284
+ }
1285
+ },
1286
+ {
1287
+ "namespace_description": "Create a discussion comment",
1288
+ "method": "post",
1289
+ "endpoint": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments",
1290
+ "field_0": {
1291
+ "field_type": "header",
1292
+ "fields": {
1293
+ "name": "accept",
1294
+ "type": "string",
1295
+ "in": "header",
1296
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1297
+ }
1298
+ },
1299
+ "field_1": {
1300
+ "field_type": "path",
1301
+ "fields": {
1302
+ "name": "org",
1303
+ "type": "string",
1304
+ "in": "path",
1305
+ "description": ""
1306
+ }
1307
+ },
1308
+ "field_2": {
1309
+ "field_type": "path",
1310
+ "fields": {
1311
+ "name": "team_slug",
1312
+ "type": "string",
1313
+ "in": "path",
1314
+ "description": "team_slug parameter"
1315
+ }
1316
+ },
1317
+ "field_3": {
1318
+ "field_type": "path",
1319
+ "fields": {
1320
+ "name": "discussion_number",
1321
+ "type": "integer",
1322
+ "in": "path",
1323
+ "description": ""
1324
+ }
1325
+ },
1326
+ "field_4": {
1327
+ "field_type": "body",
1328
+ "fields": {
1329
+ "name": "body",
1330
+ "type": "string",
1331
+ "in": "body",
1332
+ "description": "Required. The discussion comment's body text."
1333
+ }
1334
+ }
1335
+ },
1336
+ {
1337
+ "namespace_description": "Get a discussion comment",
1338
+ "method": "get",
1339
+ "endpoint": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}",
1340
+ "field_0": {
1341
+ "field_type": "header",
1342
+ "fields": {
1343
+ "name": "accept",
1344
+ "type": "string",
1345
+ "in": "header",
1346
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1347
+ }
1348
+ },
1349
+ "field_1": {
1350
+ "field_type": "path",
1351
+ "fields": {
1352
+ "name": "org",
1353
+ "type": "string",
1354
+ "in": "path",
1355
+ "description": ""
1356
+ }
1357
+ },
1358
+ "field_2": {
1359
+ "field_type": "path",
1360
+ "fields": {
1361
+ "name": "team_slug",
1362
+ "type": "string",
1363
+ "in": "path",
1364
+ "description": "team_slug parameter"
1365
+ }
1366
+ },
1367
+ "field_3": {
1368
+ "field_type": "path",
1369
+ "fields": {
1370
+ "name": "discussion_number",
1371
+ "type": "integer",
1372
+ "in": "path",
1373
+ "description": ""
1374
+ }
1375
+ },
1376
+ "field_4": {
1377
+ "field_type": "path",
1378
+ "fields": {
1379
+ "name": "comment_number",
1380
+ "type": "integer",
1381
+ "in": "path",
1382
+ "description": ""
1383
+ }
1384
+ }
1385
+ },
1386
+ {
1387
+ "namespace_description": "Update a discussion comment",
1388
+ "method": "patch",
1389
+ "endpoint": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}",
1390
+ "field_0": {
1391
+ "field_type": "header",
1392
+ "fields": {
1393
+ "name": "accept",
1394
+ "type": "string",
1395
+ "in": "header",
1396
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1397
+ }
1398
+ },
1399
+ "field_1": {
1400
+ "field_type": "path",
1401
+ "fields": {
1402
+ "name": "org",
1403
+ "type": "string",
1404
+ "in": "path",
1405
+ "description": ""
1406
+ }
1407
+ },
1408
+ "field_2": {
1409
+ "field_type": "path",
1410
+ "fields": {
1411
+ "name": "team_slug",
1412
+ "type": "string",
1413
+ "in": "path",
1414
+ "description": "team_slug parameter"
1415
+ }
1416
+ },
1417
+ "field_3": {
1418
+ "field_type": "path",
1419
+ "fields": {
1420
+ "name": "discussion_number",
1421
+ "type": "integer",
1422
+ "in": "path",
1423
+ "description": ""
1424
+ }
1425
+ },
1426
+ "field_4": {
1427
+ "field_type": "path",
1428
+ "fields": {
1429
+ "name": "comment_number",
1430
+ "type": "integer",
1431
+ "in": "path",
1432
+ "description": ""
1433
+ }
1434
+ },
1435
+ "field_5": {
1436
+ "field_type": "body",
1437
+ "fields": {
1438
+ "name": "body",
1439
+ "type": "string",
1440
+ "in": "body",
1441
+ "description": "Required. The discussion comment's body text."
1442
+ }
1443
+ }
1444
+ },
1445
+ {
1446
+ "namespace_description": "Delete a discussion comment",
1447
+ "method": "delete",
1448
+ "endpoint": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}",
1449
+ "field_0": {
1450
+ "field_type": "header",
1451
+ "fields": {
1452
+ "name": "accept",
1453
+ "type": "string",
1454
+ "in": "header",
1455
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1456
+ }
1457
+ },
1458
+ "field_1": {
1459
+ "field_type": "path",
1460
+ "fields": {
1461
+ "name": "org",
1462
+ "type": "string",
1463
+ "in": "path",
1464
+ "description": ""
1465
+ }
1466
+ },
1467
+ "field_2": {
1468
+ "field_type": "path",
1469
+ "fields": {
1470
+ "name": "team_slug",
1471
+ "type": "string",
1472
+ "in": "path",
1473
+ "description": "team_slug parameter"
1474
+ }
1475
+ },
1476
+ "field_3": {
1477
+ "field_type": "path",
1478
+ "fields": {
1479
+ "name": "discussion_number",
1480
+ "type": "integer",
1481
+ "in": "path",
1482
+ "description": ""
1483
+ }
1484
+ },
1485
+ "field_4": {
1486
+ "field_type": "path",
1487
+ "fields": {
1488
+ "name": "comment_number",
1489
+ "type": "integer",
1490
+ "in": "path",
1491
+ "description": ""
1492
+ }
1493
+ }
1494
+ },
1495
+ {
1496
+ "namespace_description": "List discussion comments (Legacy)",
1497
+ "method": "get",
1498
+ "endpoint": "/teams/{team_id}/discussions/{discussion_number}/comments",
1499
+ "field_0": {
1500
+ "field_type": "header",
1501
+ "fields": {
1502
+ "name": "accept",
1503
+ "type": "string",
1504
+ "in": "header",
1505
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1506
+ }
1507
+ },
1508
+ "field_1": {
1509
+ "field_type": "path",
1510
+ "fields": {
1511
+ "name": "team_id",
1512
+ "type": "integer",
1513
+ "in": "path",
1514
+ "description": ""
1515
+ }
1516
+ },
1517
+ "field_2": {
1518
+ "field_type": "path",
1519
+ "fields": {
1520
+ "name": "discussion_number",
1521
+ "type": "integer",
1522
+ "in": "path",
1523
+ "description": ""
1524
+ }
1525
+ },
1526
+ "field_3": {
1527
+ "field_type": "query",
1528
+ "fields": {
1529
+ "name": "direction",
1530
+ "type": "string",
1531
+ "in": "query",
1532
+ "description": "One of asc (ascending) or desc (descending).Default: desc"
1533
+ }
1534
+ },
1535
+ "field_4": {
1536
+ "field_type": "query",
1537
+ "fields": {
1538
+ "name": "per_page",
1539
+ "type": "integer",
1540
+ "in": "query",
1541
+ "description": "Results per page (max 100)Default: 30"
1542
+ }
1543
+ },
1544
+ "field_5": {
1545
+ "field_type": "query",
1546
+ "fields": {
1547
+ "name": "page",
1548
+ "type": "integer",
1549
+ "in": "query",
1550
+ "description": "Page number of the results to fetch.Default: 1"
1551
+ }
1552
+ }
1553
+ },
1554
+ {
1555
+ "namespace_description": "Create a discussion comment (Legacy)",
1556
+ "method": "post",
1557
+ "endpoint": "/teams/{team_id}/discussions/{discussion_number}/comments",
1558
+ "field_0": {
1559
+ "field_type": "header",
1560
+ "fields": {
1561
+ "name": "accept",
1562
+ "type": "string",
1563
+ "in": "header",
1564
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1565
+ }
1566
+ },
1567
+ "field_1": {
1568
+ "field_type": "path",
1569
+ "fields": {
1570
+ "name": "team_id",
1571
+ "type": "integer",
1572
+ "in": "path",
1573
+ "description": ""
1574
+ }
1575
+ },
1576
+ "field_2": {
1577
+ "field_type": "path",
1578
+ "fields": {
1579
+ "name": "discussion_number",
1580
+ "type": "integer",
1581
+ "in": "path",
1582
+ "description": ""
1583
+ }
1584
+ },
1585
+ "field_3": {
1586
+ "field_type": "body",
1587
+ "fields": {
1588
+ "name": "body",
1589
+ "type": "string",
1590
+ "in": "body",
1591
+ "description": "Required. The discussion comment's body text."
1592
+ }
1593
+ }
1594
+ },
1595
+ {
1596
+ "namespace_description": "Get a discussion comment (Legacy)",
1597
+ "method": "get",
1598
+ "endpoint": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}",
1599
+ "field_0": {
1600
+ "field_type": "header",
1601
+ "fields": {
1602
+ "name": "accept",
1603
+ "type": "string",
1604
+ "in": "header",
1605
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1606
+ }
1607
+ },
1608
+ "field_1": {
1609
+ "field_type": "path",
1610
+ "fields": {
1611
+ "name": "team_id",
1612
+ "type": "integer",
1613
+ "in": "path",
1614
+ "description": ""
1615
+ }
1616
+ },
1617
+ "field_2": {
1618
+ "field_type": "path",
1619
+ "fields": {
1620
+ "name": "discussion_number",
1621
+ "type": "integer",
1622
+ "in": "path",
1623
+ "description": ""
1624
+ }
1625
+ },
1626
+ "field_3": {
1627
+ "field_type": "path",
1628
+ "fields": {
1629
+ "name": "comment_number",
1630
+ "type": "integer",
1631
+ "in": "path",
1632
+ "description": ""
1633
+ }
1634
+ }
1635
+ },
1636
+ {
1637
+ "namespace_description": "Update a discussion comment (Legacy)",
1638
+ "method": "patch",
1639
+ "endpoint": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}",
1640
+ "field_0": {
1641
+ "field_type": "header",
1642
+ "fields": {
1643
+ "name": "accept",
1644
+ "type": "string",
1645
+ "in": "header",
1646
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1647
+ }
1648
+ },
1649
+ "field_1": {
1650
+ "field_type": "path",
1651
+ "fields": {
1652
+ "name": "team_id",
1653
+ "type": "integer",
1654
+ "in": "path",
1655
+ "description": ""
1656
+ }
1657
+ },
1658
+ "field_2": {
1659
+ "field_type": "path",
1660
+ "fields": {
1661
+ "name": "discussion_number",
1662
+ "type": "integer",
1663
+ "in": "path",
1664
+ "description": ""
1665
+ }
1666
+ },
1667
+ "field_3": {
1668
+ "field_type": "path",
1669
+ "fields": {
1670
+ "name": "comment_number",
1671
+ "type": "integer",
1672
+ "in": "path",
1673
+ "description": ""
1674
+ }
1675
+ },
1676
+ "field_4": {
1677
+ "field_type": "body",
1678
+ "fields": {
1679
+ "name": "body",
1680
+ "type": "string",
1681
+ "in": "body",
1682
+ "description": "Required. The discussion comment's body text."
1683
+ }
1684
+ }
1685
+ },
1686
+ {
1687
+ "namespace_description": "Delete a discussion comment (Legacy)",
1688
+ "method": "delete",
1689
+ "endpoint": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}",
1690
+ "field_0": {
1691
+ "field_type": "header",
1692
+ "fields": {
1693
+ "name": "accept",
1694
+ "type": "string",
1695
+ "in": "header",
1696
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1697
+ }
1698
+ },
1699
+ "field_1": {
1700
+ "field_type": "path",
1701
+ "fields": {
1702
+ "name": "team_id",
1703
+ "type": "integer",
1704
+ "in": "path",
1705
+ "description": ""
1706
+ }
1707
+ },
1708
+ "field_2": {
1709
+ "field_type": "path",
1710
+ "fields": {
1711
+ "name": "discussion_number",
1712
+ "type": "integer",
1713
+ "in": "path",
1714
+ "description": ""
1715
+ }
1716
+ },
1717
+ "field_3": {
1718
+ "field_type": "path",
1719
+ "fields": {
1720
+ "name": "comment_number",
1721
+ "type": "integer",
1722
+ "in": "path",
1723
+ "description": ""
1724
+ }
1725
+ }
1726
+ },
1727
+ {
1728
+ "namespace_description": "List discussions",
1729
+ "method": "get",
1730
+ "endpoint": "/orgs/{org}/teams/{team_slug}/discussions",
1731
+ "field_0": {
1732
+ "field_type": "header",
1733
+ "fields": {
1734
+ "name": "accept",
1735
+ "type": "string",
1736
+ "in": "header",
1737
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1738
+ }
1739
+ },
1740
+ "field_1": {
1741
+ "field_type": "path",
1742
+ "fields": {
1743
+ "name": "org",
1744
+ "type": "string",
1745
+ "in": "path",
1746
+ "description": ""
1747
+ }
1748
+ },
1749
+ "field_2": {
1750
+ "field_type": "path",
1751
+ "fields": {
1752
+ "name": "team_slug",
1753
+ "type": "string",
1754
+ "in": "path",
1755
+ "description": "team_slug parameter"
1756
+ }
1757
+ },
1758
+ "field_3": {
1759
+ "field_type": "query",
1760
+ "fields": {
1761
+ "name": "direction",
1762
+ "type": "string",
1763
+ "in": "query",
1764
+ "description": "One of asc (ascending) or desc (descending).Default: desc"
1765
+ }
1766
+ },
1767
+ "field_4": {
1768
+ "field_type": "query",
1769
+ "fields": {
1770
+ "name": "per_page",
1771
+ "type": "integer",
1772
+ "in": "query",
1773
+ "description": "Results per page (max 100)Default: 30"
1774
+ }
1775
+ },
1776
+ "field_5": {
1777
+ "field_type": "query",
1778
+ "fields": {
1779
+ "name": "page",
1780
+ "type": "integer",
1781
+ "in": "query",
1782
+ "description": "Page number of the results to fetch.Default: 1"
1783
+ }
1784
+ },
1785
+ "field_6": {
1786
+ "field_type": "query",
1787
+ "fields": {
1788
+ "name": "pinned",
1789
+ "type": "string",
1790
+ "in": "query",
1791
+ "description": "Pinned discussions only filter"
1792
+ }
1793
+ }
1794
+ },
1795
+ {
1796
+ "namespace_description": "Create a discussion",
1797
+ "method": "post",
1798
+ "endpoint": "/orgs/{org}/teams/{team_slug}/discussions",
1799
+ "field_0": {
1800
+ "field_type": "header",
1801
+ "fields": {
1802
+ "name": "accept",
1803
+ "type": "string",
1804
+ "in": "header",
1805
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1806
+ }
1807
+ },
1808
+ "field_1": {
1809
+ "field_type": "path",
1810
+ "fields": {
1811
+ "name": "org",
1812
+ "type": "string",
1813
+ "in": "path",
1814
+ "description": ""
1815
+ }
1816
+ },
1817
+ "field_2": {
1818
+ "field_type": "path",
1819
+ "fields": {
1820
+ "name": "team_slug",
1821
+ "type": "string",
1822
+ "in": "path",
1823
+ "description": "team_slug parameter"
1824
+ }
1825
+ },
1826
+ "field_3": {
1827
+ "field_type": "body",
1828
+ "fields": {
1829
+ "name": "title",
1830
+ "type": "string",
1831
+ "in": "body",
1832
+ "description": "Required. The discussion post's title."
1833
+ }
1834
+ },
1835
+ "field_4": {
1836
+ "field_type": "body",
1837
+ "fields": {
1838
+ "name": "body",
1839
+ "type": "string",
1840
+ "in": "body",
1841
+ "description": "Required. The discussion post's body text."
1842
+ }
1843
+ },
1844
+ "field_5": {
1845
+ "field_type": "body",
1846
+ "fields": {
1847
+ "name": "private",
1848
+ "type": "boolean",
1849
+ "in": "body",
1850
+ "description": "Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to true to create a private post."
1851
+ }
1852
+ }
1853
+ },
1854
+ {
1855
+ "namespace_description": "Get a discussion",
1856
+ "method": "get",
1857
+ "endpoint": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}",
1858
+ "field_0": {
1859
+ "field_type": "header",
1860
+ "fields": {
1861
+ "name": "accept",
1862
+ "type": "string",
1863
+ "in": "header",
1864
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1865
+ }
1866
+ },
1867
+ "field_1": {
1868
+ "field_type": "path",
1869
+ "fields": {
1870
+ "name": "org",
1871
+ "type": "string",
1872
+ "in": "path",
1873
+ "description": ""
1874
+ }
1875
+ },
1876
+ "field_2": {
1877
+ "field_type": "path",
1878
+ "fields": {
1879
+ "name": "team_slug",
1880
+ "type": "string",
1881
+ "in": "path",
1882
+ "description": "team_slug parameter"
1883
+ }
1884
+ },
1885
+ "field_3": {
1886
+ "field_type": "path",
1887
+ "fields": {
1888
+ "name": "discussion_number",
1889
+ "type": "integer",
1890
+ "in": "path",
1891
+ "description": ""
1892
+ }
1893
+ }
1894
+ },
1895
+ {
1896
+ "namespace_description": "Update a discussion",
1897
+ "method": "patch",
1898
+ "endpoint": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}",
1899
+ "field_0": {
1900
+ "field_type": "header",
1901
+ "fields": {
1902
+ "name": "accept",
1903
+ "type": "string",
1904
+ "in": "header",
1905
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1906
+ }
1907
+ },
1908
+ "field_1": {
1909
+ "field_type": "path",
1910
+ "fields": {
1911
+ "name": "org",
1912
+ "type": "string",
1913
+ "in": "path",
1914
+ "description": ""
1915
+ }
1916
+ },
1917
+ "field_2": {
1918
+ "field_type": "path",
1919
+ "fields": {
1920
+ "name": "team_slug",
1921
+ "type": "string",
1922
+ "in": "path",
1923
+ "description": "team_slug parameter"
1924
+ }
1925
+ },
1926
+ "field_3": {
1927
+ "field_type": "path",
1928
+ "fields": {
1929
+ "name": "discussion_number",
1930
+ "type": "integer",
1931
+ "in": "path",
1932
+ "description": ""
1933
+ }
1934
+ },
1935
+ "field_4": {
1936
+ "field_type": "body",
1937
+ "fields": {
1938
+ "name": "title",
1939
+ "type": "string",
1940
+ "in": "body",
1941
+ "description": "The discussion post's title."
1942
+ }
1943
+ },
1944
+ "field_5": {
1945
+ "field_type": "body",
1946
+ "fields": {
1947
+ "name": "body",
1948
+ "type": "string",
1949
+ "in": "body",
1950
+ "description": "The discussion post's body text."
1951
+ }
1952
+ }
1953
+ },
1954
+ {
1955
+ "namespace_description": "Delete a discussion",
1956
+ "method": "delete",
1957
+ "endpoint": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}",
1958
+ "field_0": {
1959
+ "field_type": "header",
1960
+ "fields": {
1961
+ "name": "accept",
1962
+ "type": "string",
1963
+ "in": "header",
1964
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1965
+ }
1966
+ },
1967
+ "field_1": {
1968
+ "field_type": "path",
1969
+ "fields": {
1970
+ "name": "org",
1971
+ "type": "string",
1972
+ "in": "path",
1973
+ "description": ""
1974
+ }
1975
+ },
1976
+ "field_2": {
1977
+ "field_type": "path",
1978
+ "fields": {
1979
+ "name": "team_slug",
1980
+ "type": "string",
1981
+ "in": "path",
1982
+ "description": "team_slug parameter"
1983
+ }
1984
+ },
1985
+ "field_3": {
1986
+ "field_type": "path",
1987
+ "fields": {
1988
+ "name": "discussion_number",
1989
+ "type": "integer",
1990
+ "in": "path",
1991
+ "description": ""
1992
+ }
1993
+ }
1994
+ },
1995
+ {
1996
+ "namespace_description": "List discussions (Legacy)",
1997
+ "method": "get",
1998
+ "endpoint": "/teams/{team_id}/discussions",
1999
+ "field_0": {
2000
+ "field_type": "header",
2001
+ "fields": {
2002
+ "name": "accept",
2003
+ "type": "string",
2004
+ "in": "header",
2005
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
2006
+ }
2007
+ },
2008
+ "field_1": {
2009
+ "field_type": "path",
2010
+ "fields": {
2011
+ "name": "team_id",
2012
+ "type": "integer",
2013
+ "in": "path",
2014
+ "description": ""
2015
+ }
2016
+ },
2017
+ "field_2": {
2018
+ "field_type": "query",
2019
+ "fields": {
2020
+ "name": "direction",
2021
+ "type": "string",
2022
+ "in": "query",
2023
+ "description": "One of asc (ascending) or desc (descending).Default: desc"
2024
+ }
2025
+ },
2026
+ "field_3": {
2027
+ "field_type": "query",
2028
+ "fields": {
2029
+ "name": "per_page",
2030
+ "type": "integer",
2031
+ "in": "query",
2032
+ "description": "Results per page (max 100)Default: 30"
2033
+ }
2034
+ },
2035
+ "field_4": {
2036
+ "field_type": "query",
2037
+ "fields": {
2038
+ "name": "page",
2039
+ "type": "integer",
2040
+ "in": "query",
2041
+ "description": "Page number of the results to fetch.Default: 1"
2042
+ }
2043
+ }
2044
+ },
2045
+ {
2046
+ "namespace_description": "Create a discussion (Legacy)",
2047
+ "method": "post",
2048
+ "endpoint": "/teams/{team_id}/discussions",
2049
+ "field_0": {
2050
+ "field_type": "header",
2051
+ "fields": {
2052
+ "name": "accept",
2053
+ "type": "string",
2054
+ "in": "header",
2055
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
2056
+ }
2057
+ },
2058
+ "field_1": {
2059
+ "field_type": "path",
2060
+ "fields": {
2061
+ "name": "team_id",
2062
+ "type": "integer",
2063
+ "in": "path",
2064
+ "description": ""
2065
+ }
2066
+ },
2067
+ "field_2": {
2068
+ "field_type": "body",
2069
+ "fields": {
2070
+ "name": "title",
2071
+ "type": "string",
2072
+ "in": "body",
2073
+ "description": "Required. The discussion post's title."
2074
+ }
2075
+ },
2076
+ "field_3": {
2077
+ "field_type": "body",
2078
+ "fields": {
2079
+ "name": "body",
2080
+ "type": "string",
2081
+ "in": "body",
2082
+ "description": "Required. The discussion post's body text."
2083
+ }
2084
+ },
2085
+ "field_4": {
2086
+ "field_type": "body",
2087
+ "fields": {
2088
+ "name": "private",
2089
+ "type": "boolean",
2090
+ "in": "body",
2091
+ "description": "Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to true to create a private post."
2092
+ }
2093
+ }
2094
+ },
2095
+ {
2096
+ "namespace_description": "Get a discussion (Legacy)",
2097
+ "method": "get",
2098
+ "endpoint": "/teams/{team_id}/discussions/{discussion_number}",
2099
+ "field_0": {
2100
+ "field_type": "header",
2101
+ "fields": {
2102
+ "name": "accept",
2103
+ "type": "string",
2104
+ "in": "header",
2105
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
2106
+ }
2107
+ },
2108
+ "field_1": {
2109
+ "field_type": "path",
2110
+ "fields": {
2111
+ "name": "team_id",
2112
+ "type": "integer",
2113
+ "in": "path",
2114
+ "description": ""
2115
+ }
2116
+ },
2117
+ "field_2": {
2118
+ "field_type": "path",
2119
+ "fields": {
2120
+ "name": "discussion_number",
2121
+ "type": "integer",
2122
+ "in": "path",
2123
+ "description": ""
2124
+ }
2125
+ }
2126
+ },
2127
+ {
2128
+ "namespace_description": "Update a discussion (Legacy)",
2129
+ "method": "patch",
2130
+ "endpoint": "/teams/{team_id}/discussions/{discussion_number}",
2131
+ "field_0": {
2132
+ "field_type": "header",
2133
+ "fields": {
2134
+ "name": "accept",
2135
+ "type": "string",
2136
+ "in": "header",
2137
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
2138
+ }
2139
+ },
2140
+ "field_1": {
2141
+ "field_type": "path",
2142
+ "fields": {
2143
+ "name": "team_id",
2144
+ "type": "integer",
2145
+ "in": "path",
2146
+ "description": ""
2147
+ }
2148
+ },
2149
+ "field_2": {
2150
+ "field_type": "path",
2151
+ "fields": {
2152
+ "name": "discussion_number",
2153
+ "type": "integer",
2154
+ "in": "path",
2155
+ "description": ""
2156
+ }
2157
+ },
2158
+ "field_3": {
2159
+ "field_type": "body",
2160
+ "fields": {
2161
+ "name": "title",
2162
+ "type": "string",
2163
+ "in": "body",
2164
+ "description": "The discussion post's title."
2165
+ }
2166
+ },
2167
+ "field_4": {
2168
+ "field_type": "body",
2169
+ "fields": {
2170
+ "name": "body",
2171
+ "type": "string",
2172
+ "in": "body",
2173
+ "description": "The discussion post's body text."
2174
+ }
2175
+ }
2176
+ },
2177
+ {
2178
+ "namespace_description": "Delete a discussion (Legacy)",
2179
+ "method": "delete",
2180
+ "endpoint": "/teams/{team_id}/discussions/{discussion_number}",
2181
+ "field_0": {
2182
+ "field_type": "header",
2183
+ "fields": {
2184
+ "name": "accept",
2185
+ "type": "string",
2186
+ "in": "header",
2187
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
2188
+ }
2189
+ },
2190
+ "field_1": {
2191
+ "field_type": "path",
2192
+ "fields": {
2193
+ "name": "team_id",
2194
+ "type": "integer",
2195
+ "in": "path",
2196
+ "description": ""
2197
+ }
2198
+ },
2199
+ "field_2": {
2200
+ "field_type": "path",
2201
+ "fields": {
2202
+ "name": "discussion_number",
2203
+ "type": "integer",
2204
+ "in": "path",
2205
+ "description": ""
2206
+ }
2207
+ }
2208
+ },
2209
+ {
2210
+ "namespace_description": "Get an external group",
2211
+ "method": "get",
2212
+ "endpoint": "/orgs/{org}/external-group/{group_id}",
2213
+ "field_0": {
2214
+ "field_type": "header",
2215
+ "fields": {
2216
+ "name": "accept",
2217
+ "type": "string",
2218
+ "in": "header",
2219
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
2220
+ }
2221
+ },
2222
+ "field_1": {
2223
+ "field_type": "path",
2224
+ "fields": {
2225
+ "name": "org",
2226
+ "type": "string",
2227
+ "in": "path",
2228
+ "description": ""
2229
+ }
2230
+ },
2231
+ "field_2": {
2232
+ "field_type": "path",
2233
+ "fields": {
2234
+ "name": "group_id",
2235
+ "type": "integer",
2236
+ "in": "path",
2237
+ "description": "group_id parameter"
2238
+ }
2239
+ }
2240
+ },
2241
+ {
2242
+ "namespace_description": "List external groups in an organization",
2243
+ "method": "get",
2244
+ "endpoint": "/orgs/{org}/external-groups",
2245
+ "field_0": {
2246
+ "field_type": "header",
2247
+ "fields": {
2248
+ "name": "accept",
2249
+ "type": "string",
2250
+ "in": "header",
2251
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
2252
+ }
2253
+ },
2254
+ "field_1": {
2255
+ "field_type": "path",
2256
+ "fields": {
2257
+ "name": "org",
2258
+ "type": "string",
2259
+ "in": "path",
2260
+ "description": ""
2261
+ }
2262
+ },
2263
+ "field_2": {
2264
+ "field_type": "query",
2265
+ "fields": {
2266
+ "name": "per_page",
2267
+ "type": "integer",
2268
+ "in": "query",
2269
+ "description": "Results per page (max 100)Default: 30"
2270
+ }
2271
+ },
2272
+ "field_3": {
2273
+ "field_type": "query",
2274
+ "fields": {
2275
+ "name": "page",
2276
+ "type": "integer",
2277
+ "in": "query",
2278
+ "description": "Page token"
2279
+ }
2280
+ },
2281
+ "field_4": {
2282
+ "field_type": "query",
2283
+ "fields": {
2284
+ "name": "display_name",
2285
+ "type": "string",
2286
+ "in": "query",
2287
+ "description": "Limits the list to groups containing the text in the group name"
2288
+ }
2289
+ }
2290
+ },
2291
+ {
2292
+ "namespace_description": "List a connection between an external group and a team",
2293
+ "method": "get",
2294
+ "endpoint": "/orgs/{org}/teams/{team_slug}/external-groups",
2295
+ "field_0": {
2296
+ "field_type": "header",
2297
+ "fields": {
2298
+ "name": "accept",
2299
+ "type": "string",
2300
+ "in": "header",
2301
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
2302
+ }
2303
+ },
2304
+ "field_1": {
2305
+ "field_type": "path",
2306
+ "fields": {
2307
+ "name": "org",
2308
+ "type": "string",
2309
+ "in": "path",
2310
+ "description": ""
2311
+ }
2312
+ },
2313
+ "field_2": {
2314
+ "field_type": "path",
2315
+ "fields": {
2316
+ "name": "team_slug",
2317
+ "type": "string",
2318
+ "in": "path",
2319
+ "description": "team_slug parameter"
2320
+ }
2321
+ }
2322
+ },
2323
+ {
2324
+ "namespace_description": "Update the connection between an external group and a team",
2325
+ "method": "patch",
2326
+ "endpoint": "/orgs/{org}/teams/{team_slug}/external-groups",
2327
+ "field_0": {
2328
+ "field_type": "header",
2329
+ "fields": {
2330
+ "name": "accept",
2331
+ "type": "string",
2332
+ "in": "header",
2333
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
2334
+ }
2335
+ },
2336
+ "field_1": {
2337
+ "field_type": "path",
2338
+ "fields": {
2339
+ "name": "org",
2340
+ "type": "string",
2341
+ "in": "path",
2342
+ "description": ""
2343
+ }
2344
+ },
2345
+ "field_2": {
2346
+ "field_type": "path",
2347
+ "fields": {
2348
+ "name": "team_slug",
2349
+ "type": "string",
2350
+ "in": "path",
2351
+ "description": "team_slug parameter"
2352
+ }
2353
+ },
2354
+ "field_3": {
2355
+ "field_type": "body",
2356
+ "fields": {
2357
+ "name": "group_id",
2358
+ "type": "integer",
2359
+ "in": "body",
2360
+ "description": "Required. External Group Id"
2361
+ }
2362
+ }
2363
+ },
2364
+ {
2365
+ "namespace_description": "Remove the connection between an external group and a team",
2366
+ "method": "delete",
2367
+ "endpoint": "/orgs/{org}/teams/{team_slug}/external-groups",
2368
+ "field_0": {
2369
+ "field_type": "header",
2370
+ "fields": {
2371
+ "name": "accept",
2372
+ "type": "string",
2373
+ "in": "header",
2374
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
2375
+ }
2376
+ },
2377
+ "field_1": {
2378
+ "field_type": "path",
2379
+ "fields": {
2380
+ "name": "org",
2381
+ "type": "string",
2382
+ "in": "path",
2383
+ "description": ""
2384
+ }
2385
+ },
2386
+ "field_2": {
2387
+ "field_type": "path",
2388
+ "fields": {
2389
+ "name": "team_slug",
2390
+ "type": "string",
2391
+ "in": "path",
2392
+ "description": "team_slug parameter"
2393
+ }
2394
+ }
2395
+ },
2396
+ {
2397
+ "namespace_description": "List pending team invitations",
2398
+ "method": "get",
2399
+ "endpoint": "/orgs/{org}/teams/{team_slug}/invitations",
2400
+ "field_0": {
2401
+ "field_type": "header",
2402
+ "fields": {
2403
+ "name": "accept",
2404
+ "type": "string",
2405
+ "in": "header",
2406
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
2407
+ }
2408
+ },
2409
+ "field_1": {
2410
+ "field_type": "path",
2411
+ "fields": {
2412
+ "name": "org",
2413
+ "type": "string",
2414
+ "in": "path",
2415
+ "description": ""
2416
+ }
2417
+ },
2418
+ "field_2": {
2419
+ "field_type": "path",
2420
+ "fields": {
2421
+ "name": "team_slug",
2422
+ "type": "string",
2423
+ "in": "path",
2424
+ "description": "team_slug parameter"
2425
+ }
2426
+ },
2427
+ "field_3": {
2428
+ "field_type": "query",
2429
+ "fields": {
2430
+ "name": "per_page",
2431
+ "type": "integer",
2432
+ "in": "query",
2433
+ "description": "Results per page (max 100)Default: 30"
2434
+ }
2435
+ },
2436
+ "field_4": {
2437
+ "field_type": "query",
2438
+ "fields": {
2439
+ "name": "page",
2440
+ "type": "integer",
2441
+ "in": "query",
2442
+ "description": "Page number of the results to fetch.Default: 1"
2443
+ }
2444
+ }
2445
+ },
2446
+ {
2447
+ "namespace_description": "List team members",
2448
+ "method": "get",
2449
+ "endpoint": "/orgs/{org}/teams/{team_slug}/members",
2450
+ "field_0": {
2451
+ "field_type": "header",
2452
+ "fields": {
2453
+ "name": "accept",
2454
+ "type": "string",
2455
+ "in": "header",
2456
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
2457
+ }
2458
+ },
2459
+ "field_1": {
2460
+ "field_type": "path",
2461
+ "fields": {
2462
+ "name": "org",
2463
+ "type": "string",
2464
+ "in": "path",
2465
+ "description": ""
2466
+ }
2467
+ },
2468
+ "field_2": {
2469
+ "field_type": "path",
2470
+ "fields": {
2471
+ "name": "team_slug",
2472
+ "type": "string",
2473
+ "in": "path",
2474
+ "description": "team_slug parameter"
2475
+ }
2476
+ },
2477
+ "field_3": {
2478
+ "field_type": "query",
2479
+ "fields": {
2480
+ "name": "role",
2481
+ "type": "string",
2482
+ "in": "query",
2483
+ "description": "Filters members returned by their role in the team. Can be one of:\n* member - normal members of the team.\n* maintainer - team maintainers.\n* all - all members of the team.Default: all"
2484
+ }
2485
+ },
2486
+ "field_4": {
2487
+ "field_type": "query",
2488
+ "fields": {
2489
+ "name": "per_page",
2490
+ "type": "integer",
2491
+ "in": "query",
2492
+ "description": "Results per page (max 100)Default: 30"
2493
+ }
2494
+ },
2495
+ "field_5": {
2496
+ "field_type": "query",
2497
+ "fields": {
2498
+ "name": "page",
2499
+ "type": "integer",
2500
+ "in": "query",
2501
+ "description": "Page number of the results to fetch.Default: 1"
2502
+ }
2503
+ }
2504
+ },
2505
+ {
2506
+ "namespace_description": "Get team membership for a user",
2507
+ "method": "get",
2508
+ "endpoint": "/orgs/{org}/teams/{team_slug}/memberships/{username}",
2509
+ "field_0": {
2510
+ "field_type": "header",
2511
+ "fields": {
2512
+ "name": "accept",
2513
+ "type": "string",
2514
+ "in": "header",
2515
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
2516
+ }
2517
+ },
2518
+ "field_1": {
2519
+ "field_type": "path",
2520
+ "fields": {
2521
+ "name": "org",
2522
+ "type": "string",
2523
+ "in": "path",
2524
+ "description": ""
2525
+ }
2526
+ },
2527
+ "field_2": {
2528
+ "field_type": "path",
2529
+ "fields": {
2530
+ "name": "team_slug",
2531
+ "type": "string",
2532
+ "in": "path",
2533
+ "description": "team_slug parameter"
2534
+ }
2535
+ },
2536
+ "field_3": {
2537
+ "field_type": "path",
2538
+ "fields": {
2539
+ "name": "username",
2540
+ "type": "string",
2541
+ "in": "path",
2542
+ "description": ""
2543
+ }
2544
+ }
2545
+ },
2546
+ {
2547
+ "namespace_description": "Add or update team membership for a user",
2548
+ "method": "put",
2549
+ "endpoint": "/orgs/{org}/teams/{team_slug}/memberships/{username}",
2550
+ "field_0": {
2551
+ "field_type": "header",
2552
+ "fields": {
2553
+ "name": "accept",
2554
+ "type": "string",
2555
+ "in": "header",
2556
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
2557
+ }
2558
+ },
2559
+ "field_1": {
2560
+ "field_type": "path",
2561
+ "fields": {
2562
+ "name": "org",
2563
+ "type": "string",
2564
+ "in": "path",
2565
+ "description": ""
2566
+ }
2567
+ },
2568
+ "field_2": {
2569
+ "field_type": "path",
2570
+ "fields": {
2571
+ "name": "team_slug",
2572
+ "type": "string",
2573
+ "in": "path",
2574
+ "description": "team_slug parameter"
2575
+ }
2576
+ },
2577
+ "field_3": {
2578
+ "field_type": "path",
2579
+ "fields": {
2580
+ "name": "username",
2581
+ "type": "string",
2582
+ "in": "path",
2583
+ "description": ""
2584
+ }
2585
+ },
2586
+ "field_4": {
2587
+ "field_type": "body",
2588
+ "fields": {
2589
+ "name": "role",
2590
+ "type": "string",
2591
+ "in": "body",
2592
+ "description": "The role that this user should have in the team. Can be one of:\n* member - a normal member of the team.\n* maintainer - a team maintainer. Able to add/remove other team members, promote other team members to team maintainer, and edit the team's name and description.Default: member"
2593
+ }
2594
+ }
2595
+ },
2596
+ {
2597
+ "namespace_description": "Remove team membership for a user",
2598
+ "method": "delete",
2599
+ "endpoint": "/orgs/{org}/teams/{team_slug}/memberships/{username}",
2600
+ "field_0": {
2601
+ "field_type": "header",
2602
+ "fields": {
2603
+ "name": "accept",
2604
+ "type": "string",
2605
+ "in": "header",
2606
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
2607
+ }
2608
+ },
2609
+ "field_1": {
2610
+ "field_type": "path",
2611
+ "fields": {
2612
+ "name": "org",
2613
+ "type": "string",
2614
+ "in": "path",
2615
+ "description": ""
2616
+ }
2617
+ },
2618
+ "field_2": {
2619
+ "field_type": "path",
2620
+ "fields": {
2621
+ "name": "team_slug",
2622
+ "type": "string",
2623
+ "in": "path",
2624
+ "description": "team_slug parameter"
2625
+ }
2626
+ },
2627
+ "field_3": {
2628
+ "field_type": "path",
2629
+ "fields": {
2630
+ "name": "username",
2631
+ "type": "string",
2632
+ "in": "path",
2633
+ "description": ""
2634
+ }
2635
+ }
2636
+ },
2637
+ {
2638
+ "namespace_description": "List pending team invitations (Legacy)",
2639
+ "method": "get",
2640
+ "endpoint": "/teams/{team_id}/invitations",
2641
+ "field_0": {
2642
+ "field_type": "header",
2643
+ "fields": {
2644
+ "name": "accept",
2645
+ "type": "string",
2646
+ "in": "header",
2647
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
2648
+ }
2649
+ },
2650
+ "field_1": {
2651
+ "field_type": "path",
2652
+ "fields": {
2653
+ "name": "team_id",
2654
+ "type": "integer",
2655
+ "in": "path",
2656
+ "description": ""
2657
+ }
2658
+ },
2659
+ "field_2": {
2660
+ "field_type": "query",
2661
+ "fields": {
2662
+ "name": "per_page",
2663
+ "type": "integer",
2664
+ "in": "query",
2665
+ "description": "Results per page (max 100)Default: 30"
2666
+ }
2667
+ },
2668
+ "field_3": {
2669
+ "field_type": "query",
2670
+ "fields": {
2671
+ "name": "page",
2672
+ "type": "integer",
2673
+ "in": "query",
2674
+ "description": "Page number of the results to fetch.Default: 1"
2675
+ }
2676
+ }
2677
+ },
2678
+ {
2679
+ "namespace_description": "List team members (Legacy)",
2680
+ "method": "get",
2681
+ "endpoint": "/teams/{team_id}/members",
2682
+ "field_0": {
2683
+ "field_type": "header",
2684
+ "fields": {
2685
+ "name": "accept",
2686
+ "type": "string",
2687
+ "in": "header",
2688
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
2689
+ }
2690
+ },
2691
+ "field_1": {
2692
+ "field_type": "path",
2693
+ "fields": {
2694
+ "name": "team_id",
2695
+ "type": "integer",
2696
+ "in": "path",
2697
+ "description": ""
2698
+ }
2699
+ },
2700
+ "field_2": {
2701
+ "field_type": "query",
2702
+ "fields": {
2703
+ "name": "role",
2704
+ "type": "string",
2705
+ "in": "query",
2706
+ "description": "Filters members returned by their role in the team. Can be one of:\n* member - normal members of the team.\n* maintainer - team maintainers.\n* all - all members of the team.Default: all"
2707
+ }
2708
+ },
2709
+ "field_3": {
2710
+ "field_type": "query",
2711
+ "fields": {
2712
+ "name": "per_page",
2713
+ "type": "integer",
2714
+ "in": "query",
2715
+ "description": "Results per page (max 100)Default: 30"
2716
+ }
2717
+ },
2718
+ "field_4": {
2719
+ "field_type": "query",
2720
+ "fields": {
2721
+ "name": "page",
2722
+ "type": "integer",
2723
+ "in": "query",
2724
+ "description": "Page number of the results to fetch.Default: 1"
2725
+ }
2726
+ }
2727
+ },
2728
+ {
2729
+ "namespace_description": "Get team member (Legacy)",
2730
+ "method": "get",
2731
+ "endpoint": "/teams/{team_id}/members/{username}",
2732
+ "field_0": {
2733
+ "field_type": "header",
2734
+ "fields": {
2735
+ "name": "accept",
2736
+ "type": "string",
2737
+ "in": "header",
2738
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
2739
+ }
2740
+ },
2741
+ "field_1": {
2742
+ "field_type": "path",
2743
+ "fields": {
2744
+ "name": "team_id",
2745
+ "type": "integer",
2746
+ "in": "path",
2747
+ "description": ""
2748
+ }
2749
+ },
2750
+ "field_2": {
2751
+ "field_type": "path",
2752
+ "fields": {
2753
+ "name": "username",
2754
+ "type": "string",
2755
+ "in": "path",
2756
+ "description": ""
2757
+ }
2758
+ }
2759
+ },
2760
+ {
2761
+ "namespace_description": "Add team member (Legacy)",
2762
+ "method": "put",
2763
+ "endpoint": "/teams/{team_id}/members/{username}",
2764
+ "field_0": {
2765
+ "field_type": "header",
2766
+ "fields": {
2767
+ "name": "accept",
2768
+ "type": "string",
2769
+ "in": "header",
2770
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
2771
+ }
2772
+ },
2773
+ "field_1": {
2774
+ "field_type": "path",
2775
+ "fields": {
2776
+ "name": "team_id",
2777
+ "type": "integer",
2778
+ "in": "path",
2779
+ "description": ""
2780
+ }
2781
+ },
2782
+ "field_2": {
2783
+ "field_type": "path",
2784
+ "fields": {
2785
+ "name": "username",
2786
+ "type": "string",
2787
+ "in": "path",
2788
+ "description": ""
2789
+ }
2790
+ }
2791
+ },
2792
+ {
2793
+ "namespace_description": "Remove team member (Legacy)",
2794
+ "method": "delete",
2795
+ "endpoint": "/teams/{team_id}/members/{username}",
2796
+ "field_0": {
2797
+ "field_type": "header",
2798
+ "fields": {
2799
+ "name": "accept",
2800
+ "type": "string",
2801
+ "in": "header",
2802
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
2803
+ }
2804
+ },
2805
+ "field_1": {
2806
+ "field_type": "path",
2807
+ "fields": {
2808
+ "name": "team_id",
2809
+ "type": "integer",
2810
+ "in": "path",
2811
+ "description": ""
2812
+ }
2813
+ },
2814
+ "field_2": {
2815
+ "field_type": "path",
2816
+ "fields": {
2817
+ "name": "username",
2818
+ "type": "string",
2819
+ "in": "path",
2820
+ "description": ""
2821
+ }
2822
+ }
2823
+ },
2824
+ {
2825
+ "namespace_description": "Get team membership for a user (Legacy)",
2826
+ "method": "get",
2827
+ "endpoint": "/teams/{team_id}/memberships/{username}",
2828
+ "field_0": {
2829
+ "field_type": "header",
2830
+ "fields": {
2831
+ "name": "accept",
2832
+ "type": "string",
2833
+ "in": "header",
2834
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
2835
+ }
2836
+ },
2837
+ "field_1": {
2838
+ "field_type": "path",
2839
+ "fields": {
2840
+ "name": "team_id",
2841
+ "type": "integer",
2842
+ "in": "path",
2843
+ "description": ""
2844
+ }
2845
+ },
2846
+ "field_2": {
2847
+ "field_type": "path",
2848
+ "fields": {
2849
+ "name": "username",
2850
+ "type": "string",
2851
+ "in": "path",
2852
+ "description": ""
2853
+ }
2854
+ }
2855
+ },
2856
+ {
2857
+ "namespace_description": "Add or update team membership for a user (Legacy)",
2858
+ "method": "put",
2859
+ "endpoint": "/teams/{team_id}/memberships/{username}",
2860
+ "field_0": {
2861
+ "field_type": "header",
2862
+ "fields": {
2863
+ "name": "accept",
2864
+ "type": "string",
2865
+ "in": "header",
2866
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
2867
+ }
2868
+ },
2869
+ "field_1": {
2870
+ "field_type": "path",
2871
+ "fields": {
2872
+ "name": "team_id",
2873
+ "type": "integer",
2874
+ "in": "path",
2875
+ "description": ""
2876
+ }
2877
+ },
2878
+ "field_2": {
2879
+ "field_type": "path",
2880
+ "fields": {
2881
+ "name": "username",
2882
+ "type": "string",
2883
+ "in": "path",
2884
+ "description": ""
2885
+ }
2886
+ },
2887
+ "field_3": {
2888
+ "field_type": "body",
2889
+ "fields": {
2890
+ "name": "role",
2891
+ "type": "string",
2892
+ "in": "body",
2893
+ "description": "The role that this user should have in the team. Can be one of:\n* member - a normal member of the team.\n* maintainer - a team maintainer. Able to add/remove other team members, promote other team members to team maintainer, and edit the team's name and description.Default: member"
2894
+ }
2895
+ }
2896
+ },
2897
+ {
2898
+ "namespace_description": "Remove team membership for a user (Legacy)",
2899
+ "method": "delete",
2900
+ "endpoint": "/teams/{team_id}/memberships/{username}",
2901
+ "field_0": {
2902
+ "field_type": "header",
2903
+ "fields": {
2904
+ "name": "accept",
2905
+ "type": "string",
2906
+ "in": "header",
2907
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
2908
+ }
2909
+ },
2910
+ "field_1": {
2911
+ "field_type": "path",
2912
+ "fields": {
2913
+ "name": "team_id",
2914
+ "type": "integer",
2915
+ "in": "path",
2916
+ "description": ""
2917
+ }
2918
+ },
2919
+ "field_2": {
2920
+ "field_type": "path",
2921
+ "fields": {
2922
+ "name": "username",
2923
+ "type": "string",
2924
+ "in": "path",
2925
+ "description": ""
2926
+ }
2927
+ }
2928
+ },
2929
+ {
2930
+ "namespace_description": "List IdP groups for an organization",
2931
+ "method": "get",
2932
+ "endpoint": "/orgs/{org}/team-sync/groups",
2933
+ "field_0": {
2934
+ "field_type": "header",
2935
+ "fields": {
2936
+ "name": "accept",
2937
+ "type": "string",
2938
+ "in": "header",
2939
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
2940
+ }
2941
+ },
2942
+ "field_1": {
2943
+ "field_type": "path",
2944
+ "fields": {
2945
+ "name": "org",
2946
+ "type": "string",
2947
+ "in": "path",
2948
+ "description": ""
2949
+ }
2950
+ },
2951
+ "field_2": {
2952
+ "field_type": "query",
2953
+ "fields": {
2954
+ "name": "per_page",
2955
+ "type": "integer",
2956
+ "in": "query",
2957
+ "description": "Results per page (max 100)Default: 30"
2958
+ }
2959
+ },
2960
+ "field_3": {
2961
+ "field_type": "query",
2962
+ "fields": {
2963
+ "name": "page",
2964
+ "type": "string",
2965
+ "in": "query",
2966
+ "description": "Page token"
2967
+ }
2968
+ }
2969
+ },
2970
+ {
2971
+ "namespace_description": "List IdP groups for a team",
2972
+ "method": "get",
2973
+ "endpoint": "/orgs/{org}/teams/{team_slug}/team-sync/group-mappings",
2974
+ "field_0": {
2975
+ "field_type": "header",
2976
+ "fields": {
2977
+ "name": "accept",
2978
+ "type": "string",
2979
+ "in": "header",
2980
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
2981
+ }
2982
+ },
2983
+ "field_1": {
2984
+ "field_type": "path",
2985
+ "fields": {
2986
+ "name": "org",
2987
+ "type": "string",
2988
+ "in": "path",
2989
+ "description": ""
2990
+ }
2991
+ },
2992
+ "field_2": {
2993
+ "field_type": "path",
2994
+ "fields": {
2995
+ "name": "team_slug",
2996
+ "type": "string",
2997
+ "in": "path",
2998
+ "description": "team_slug parameter"
2999
+ }
3000
+ }
3001
+ },
3002
+ {
3003
+ "namespace_description": "Create or update IdP group connections",
3004
+ "method": "patch",
3005
+ "endpoint": "/orgs/{org}/teams/{team_slug}/team-sync/group-mappings",
3006
+ "field_0": {
3007
+ "field_type": "header",
3008
+ "fields": {
3009
+ "name": "accept",
3010
+ "type": "string",
3011
+ "in": "header",
3012
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
3013
+ }
3014
+ },
3015
+ "field_1": {
3016
+ "field_type": "path",
3017
+ "fields": {
3018
+ "name": "org",
3019
+ "type": "string",
3020
+ "in": "path",
3021
+ "description": ""
3022
+ }
3023
+ },
3024
+ "field_2": {
3025
+ "field_type": "path",
3026
+ "fields": {
3027
+ "name": "team_slug",
3028
+ "type": "string",
3029
+ "in": "path",
3030
+ "description": "team_slug parameter"
3031
+ }
3032
+ },
3033
+ "field_3": {
3034
+ "field_type": "body",
3035
+ "fields": {
3036
+ "name": "groups",
3037
+ "type": "array of objects",
3038
+ "in": "body",
3039
+ "description": "The IdP groups you want to connect to a GitHub team. When updating, the new groups object will replace the original one. You must include any existing groups that you don't want to remove."
3040
+ }
3041
+ },
3042
+ "field_4": {
3043
+ "field_type": null,
3044
+ "fields": {
3045
+ "name": "Properties of thegroupsitemsName (Type)Descriptiongroup_id (string)Required. ID of the IdP group.group_name (string)Required. Name of the IdP group.group_description (string)Required. Description of the IdP group.",
3046
+ "type": null,
3047
+ "in": null,
3048
+ "description": null
3049
+ }
3050
+ }
3051
+ },
3052
+ {
3053
+ "namespace_description": "List IdP groups for a team (Legacy)",
3054
+ "method": "get",
3055
+ "endpoint": "/teams/{team_id}/team-sync/group-mappings",
3056
+ "field_0": {
3057
+ "field_type": "header",
3058
+ "fields": {
3059
+ "name": "accept",
3060
+ "type": "string",
3061
+ "in": "header",
3062
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
3063
+ }
3064
+ },
3065
+ "field_1": {
3066
+ "field_type": "path",
3067
+ "fields": {
3068
+ "name": "team_id",
3069
+ "type": "integer",
3070
+ "in": "path",
3071
+ "description": ""
3072
+ }
3073
+ }
3074
+ },
3075
+ {
3076
+ "namespace_description": "Create or update IdP group connections (Legacy)",
3077
+ "method": "patch",
3078
+ "endpoint": "/teams/{team_id}/team-sync/group-mappings",
3079
+ "field_0": {
3080
+ "field_type": "header",
3081
+ "fields": {
3082
+ "name": "accept",
3083
+ "type": "string",
3084
+ "in": "header",
3085
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
3086
+ }
3087
+ },
3088
+ "field_1": {
3089
+ "field_type": "path",
3090
+ "fields": {
3091
+ "name": "team_id",
3092
+ "type": "integer",
3093
+ "in": "path",
3094
+ "description": ""
3095
+ }
3096
+ },
3097
+ "field_2": {
3098
+ "field_type": "body",
3099
+ "fields": {
3100
+ "name": "groups",
3101
+ "type": "array of objects",
3102
+ "in": "body",
3103
+ "description": "Required. The IdP groups you want to connect to a GitHub team. When updating, the new groups object will replace the original one. You must include any existing groups that you don't want to remove."
3104
+ }
3105
+ },
3106
+ "field_3": {
3107
+ "field_type": null,
3108
+ "fields": {
3109
+ "name": "Properties of thegroupsitemsName (Type)Descriptiongroup_id (string)Required. ID of the IdP group.group_name (string)Required. Name of the IdP group.group_description (string)Required. Description of the IdP group.id (string)name (string)description (string)",
3110
+ "type": null,
3111
+ "in": null,
3112
+ "description": null
3113
+ }
3114
+ },
3115
+ "field_4": {
3116
+ "field_type": "body",
3117
+ "fields": {
3118
+ "name": "synced_at",
3119
+ "type": "string",
3120
+ "in": "body",
3121
+ "description": ""
3122
+ }
3123
+ }
3124
+ }
3125
+ ]
3126
+ }