@octokit/openapi 7.9.0 → 7.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated/api.github.com.deref.json +2604 -719
- package/generated/api.github.com.json +539 -29
- package/generated/ghes-3.2-diff-to-api.github.com.deref.json +1 -1
- package/generated/ghes-3.2-diff-to-api.github.com.json +1 -1
- package/generated/ghes-3.2-diff-to-ghes-3.3.deref.json +8 -6
- package/generated/ghes-3.2-diff-to-ghes-3.3.json +8 -6
- package/generated/ghes-3.2.deref.json +745 -128
- package/generated/ghes-3.2.json +35 -8
- package/generated/ghes-3.3-anicca-diff-to-ghes-3.4.deref.json +21 -0
- package/generated/ghes-3.3-diff-to-ghes-3.4.deref.json +615 -1
- package/generated/ghes-3.3-diff-to-ghes-3.4.json +25 -1
- package/generated/ghes-3.3.deref.json +910 -293
- package/generated/ghes-3.3.json +35 -8
- package/generated/ghes-3.4-diff-to-ghes-3.5.deref.json +2 -2
- package/generated/ghes-3.4-diff-to-ghes-3.5.json +2 -2
- package/generated/ghes-3.4.deref.json +750 -128
- package/generated/ghes-3.4.json +37 -10
- package/generated/ghes-3.5-anicca-diff-to-ghes-3.6.deref.json +21 -0
- package/generated/ghes-3.5-diff-to-api.github.com.deref.json +1 -1
- package/generated/ghes-3.5-diff-to-api.github.com.json +1 -1
- package/generated/ghes-3.5-diff-to-ghes-3.6.deref.json +753 -132
- package/generated/ghes-3.5-diff-to-ghes-3.6.json +32 -6
- package/generated/ghes-3.5.deref.json +915 -293
- package/generated/ghes-3.5.json +37 -10
- package/generated/ghes-3.6-anicca-diff-to-api.github.com.deref.json +46 -0
- package/generated/ghes-3.6-diff-to-api.github.com.deref.json +125 -20
- package/generated/ghes-3.6-diff-to-api.github.com.json +110 -6
- package/generated/ghes-3.6.deref.json +1236 -419
- package/generated/ghes-3.6.json +142 -21
- package/generated/github.ae-anicca-diff-to-api.github.com.deref.json +10 -0
- package/generated/github.ae-diff-to-api.github.com.deref.json +8 -6
- package/generated/github.ae-diff-to-api.github.com.json +8 -6
- package/generated/github.ae.deref.json +1001 -288
- package/generated/github.ae.json +127 -14
- package/package.json +1 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.11.0",
|
|
5
5
|
"title": "GitHub's official OpenAPI spec + Octokit extension",
|
|
6
6
|
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
|
|
7
7
|
"license": {
|
|
@@ -86628,8 +86628,9 @@
|
|
|
86628
86628
|
},
|
|
86629
86629
|
"use_squash_pr_title_as_default": {
|
|
86630
86630
|
"type": "boolean",
|
|
86631
|
-
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
|
|
86632
|
-
"default": false
|
|
86631
|
+
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.",
|
|
86632
|
+
"default": false,
|
|
86633
|
+
"deprecated": true
|
|
86633
86634
|
},
|
|
86634
86635
|
"squash_merge_commit_title": {
|
|
86635
86636
|
"type": "string",
|
|
@@ -89266,18 +89267,718 @@
|
|
|
89266
89267
|
"category": "teams",
|
|
89267
89268
|
"subcategory": null
|
|
89268
89269
|
},
|
|
89269
|
-
"x-octokit": {}
|
|
89270
|
-
},
|
|
89271
|
-
"post": {
|
|
89272
|
-
"summary": "Create a team",
|
|
89273
|
-
"description": "To create a team, the authenticated user must be a member or owner of `{org}`. By default, organization members can create teams. Organization owners can limit team creation to organization owners. For more information, see \"[Setting team creation permissions](https://docs.github.com/en/articles/setting-team-creation-permissions-in-your-organization).\"\n\nWhen you create a new team, you automatically become a team maintainer without explicitly adding yourself to the optional array of `maintainers`. For more information, see \"[About teams](https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/about-teams)\".",
|
|
89270
|
+
"x-octokit": {}
|
|
89271
|
+
},
|
|
89272
|
+
"post": {
|
|
89273
|
+
"summary": "Create a team",
|
|
89274
|
+
"description": "To create a team, the authenticated user must be a member or owner of `{org}`. By default, organization members can create teams. Organization owners can limit team creation to organization owners. For more information, see \"[Setting team creation permissions](https://docs.github.com/en/articles/setting-team-creation-permissions-in-your-organization).\"\n\nWhen you create a new team, you automatically become a team maintainer without explicitly adding yourself to the optional array of `maintainers`. For more information, see \"[About teams](https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/about-teams)\".",
|
|
89275
|
+
"tags": [
|
|
89276
|
+
"teams"
|
|
89277
|
+
],
|
|
89278
|
+
"operationId": "teams/create",
|
|
89279
|
+
"externalDocs": {
|
|
89280
|
+
"description": "API method documentation",
|
|
89281
|
+
"url": "https://docs.github.com/enterprise-server@3.3/rest/reference/teams#create-a-team"
|
|
89282
|
+
},
|
|
89283
|
+
"parameters": [
|
|
89284
|
+
{
|
|
89285
|
+
"name": "org",
|
|
89286
|
+
"description": "The organization name. The name is not case sensitive.",
|
|
89287
|
+
"in": "path",
|
|
89288
|
+
"required": true,
|
|
89289
|
+
"schema": {
|
|
89290
|
+
"type": "string"
|
|
89291
|
+
}
|
|
89292
|
+
}
|
|
89293
|
+
],
|
|
89294
|
+
"requestBody": {
|
|
89295
|
+
"required": true,
|
|
89296
|
+
"content": {
|
|
89297
|
+
"application/json": {
|
|
89298
|
+
"schema": {
|
|
89299
|
+
"type": "object",
|
|
89300
|
+
"properties": {
|
|
89301
|
+
"name": {
|
|
89302
|
+
"type": "string",
|
|
89303
|
+
"description": "The name of the team."
|
|
89304
|
+
},
|
|
89305
|
+
"description": {
|
|
89306
|
+
"type": "string",
|
|
89307
|
+
"description": "The description of the team."
|
|
89308
|
+
},
|
|
89309
|
+
"maintainers": {
|
|
89310
|
+
"type": "array",
|
|
89311
|
+
"description": "List GitHub IDs for organization members who will become team maintainers.",
|
|
89312
|
+
"items": {
|
|
89313
|
+
"type": "string"
|
|
89314
|
+
}
|
|
89315
|
+
},
|
|
89316
|
+
"repo_names": {
|
|
89317
|
+
"type": "array",
|
|
89318
|
+
"description": "The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to.",
|
|
89319
|
+
"items": {
|
|
89320
|
+
"type": "string"
|
|
89321
|
+
}
|
|
89322
|
+
},
|
|
89323
|
+
"privacy": {
|
|
89324
|
+
"type": "string",
|
|
89325
|
+
"description": "The level of privacy this team should have. The options are: \n**For 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` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed`",
|
|
89326
|
+
"enum": [
|
|
89327
|
+
"secret",
|
|
89328
|
+
"closed"
|
|
89329
|
+
]
|
|
89330
|
+
},
|
|
89331
|
+
"permission": {
|
|
89332
|
+
"type": "string",
|
|
89333
|
+
"description": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified.",
|
|
89334
|
+
"enum": [
|
|
89335
|
+
"pull",
|
|
89336
|
+
"push"
|
|
89337
|
+
],
|
|
89338
|
+
"default": "pull"
|
|
89339
|
+
},
|
|
89340
|
+
"parent_team_id": {
|
|
89341
|
+
"type": "integer",
|
|
89342
|
+
"description": "The ID of a team to set as the parent team."
|
|
89343
|
+
},
|
|
89344
|
+
"ldap_dn": {
|
|
89345
|
+
"type": "string",
|
|
89346
|
+
"description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team. LDAP synchronization must be enabled to map LDAP entries to a team. Use the \"[Update LDAP mapping for a team](https://docs.github.com/enterprise-server@3.3/rest/reference/enterprise-admin#update-ldap-mapping-for-a-team)\" endpoint to change the LDAP DN. For more information, see \"[Using LDAP](https://docs.github.com/enterprise-server@3.3/admin/identity-and-access-management/authenticating-users-for-your-github-enterprise-server-instance/using-ldap#enabling-ldap-sync).\""
|
|
89347
|
+
}
|
|
89348
|
+
},
|
|
89349
|
+
"required": [
|
|
89350
|
+
"name"
|
|
89351
|
+
]
|
|
89352
|
+
},
|
|
89353
|
+
"examples": {
|
|
89354
|
+
"default": {
|
|
89355
|
+
"value": {
|
|
89356
|
+
"name": "Justice League",
|
|
89357
|
+
"description": "A great team",
|
|
89358
|
+
"permission": "push",
|
|
89359
|
+
"privacy": "closed"
|
|
89360
|
+
}
|
|
89361
|
+
}
|
|
89362
|
+
}
|
|
89363
|
+
}
|
|
89364
|
+
}
|
|
89365
|
+
},
|
|
89366
|
+
"responses": {
|
|
89367
|
+
"201": {
|
|
89368
|
+
"description": "Response",
|
|
89369
|
+
"content": {
|
|
89370
|
+
"application/json": {
|
|
89371
|
+
"schema": {
|
|
89372
|
+
"title": "Full Team",
|
|
89373
|
+
"description": "Groups of organization members that gives permissions on specified repositories.",
|
|
89374
|
+
"type": "object",
|
|
89375
|
+
"properties": {
|
|
89376
|
+
"id": {
|
|
89377
|
+
"description": "Unique identifier of the team",
|
|
89378
|
+
"example": 42,
|
|
89379
|
+
"type": "integer"
|
|
89380
|
+
},
|
|
89381
|
+
"node_id": {
|
|
89382
|
+
"type": "string",
|
|
89383
|
+
"example": "MDQ6VGVhbTE="
|
|
89384
|
+
},
|
|
89385
|
+
"url": {
|
|
89386
|
+
"description": "URL for the team",
|
|
89387
|
+
"example": "https://api.github.com/organizations/1/team/1",
|
|
89388
|
+
"type": "string",
|
|
89389
|
+
"format": "uri"
|
|
89390
|
+
},
|
|
89391
|
+
"html_url": {
|
|
89392
|
+
"type": "string",
|
|
89393
|
+
"format": "uri",
|
|
89394
|
+
"example": "https://github.com/orgs/rails/teams/core"
|
|
89395
|
+
},
|
|
89396
|
+
"name": {
|
|
89397
|
+
"description": "Name of the team",
|
|
89398
|
+
"example": "Developers",
|
|
89399
|
+
"type": "string"
|
|
89400
|
+
},
|
|
89401
|
+
"slug": {
|
|
89402
|
+
"type": "string",
|
|
89403
|
+
"example": "justice-league"
|
|
89404
|
+
},
|
|
89405
|
+
"description": {
|
|
89406
|
+
"type": "string",
|
|
89407
|
+
"example": "A great team.",
|
|
89408
|
+
"nullable": true
|
|
89409
|
+
},
|
|
89410
|
+
"privacy": {
|
|
89411
|
+
"description": "The level of privacy this team should have",
|
|
89412
|
+
"type": "string",
|
|
89413
|
+
"enum": [
|
|
89414
|
+
"closed",
|
|
89415
|
+
"secret"
|
|
89416
|
+
],
|
|
89417
|
+
"example": "closed"
|
|
89418
|
+
},
|
|
89419
|
+
"permission": {
|
|
89420
|
+
"description": "Permission that the team will have for its repositories",
|
|
89421
|
+
"example": "push",
|
|
89422
|
+
"type": "string"
|
|
89423
|
+
},
|
|
89424
|
+
"members_url": {
|
|
89425
|
+
"type": "string",
|
|
89426
|
+
"example": "https://api.github.com/organizations/1/team/1/members{/member}"
|
|
89427
|
+
},
|
|
89428
|
+
"repositories_url": {
|
|
89429
|
+
"type": "string",
|
|
89430
|
+
"format": "uri",
|
|
89431
|
+
"example": "https://api.github.com/organizations/1/team/1/repos"
|
|
89432
|
+
},
|
|
89433
|
+
"parent": {
|
|
89434
|
+
"title": "Team Simple",
|
|
89435
|
+
"description": "Groups of organization members that gives permissions on specified repositories.",
|
|
89436
|
+
"type": "object",
|
|
89437
|
+
"properties": {
|
|
89438
|
+
"id": {
|
|
89439
|
+
"description": "Unique identifier of the team",
|
|
89440
|
+
"type": "integer",
|
|
89441
|
+
"example": 1
|
|
89442
|
+
},
|
|
89443
|
+
"node_id": {
|
|
89444
|
+
"type": "string",
|
|
89445
|
+
"example": "MDQ6VGVhbTE="
|
|
89446
|
+
},
|
|
89447
|
+
"url": {
|
|
89448
|
+
"description": "URL for the team",
|
|
89449
|
+
"type": "string",
|
|
89450
|
+
"format": "uri",
|
|
89451
|
+
"example": "https://api.github.com/organizations/1/team/1"
|
|
89452
|
+
},
|
|
89453
|
+
"members_url": {
|
|
89454
|
+
"type": "string",
|
|
89455
|
+
"example": "https://api.github.com/organizations/1/team/1/members{/member}"
|
|
89456
|
+
},
|
|
89457
|
+
"name": {
|
|
89458
|
+
"description": "Name of the team",
|
|
89459
|
+
"type": "string",
|
|
89460
|
+
"example": "Justice League"
|
|
89461
|
+
},
|
|
89462
|
+
"description": {
|
|
89463
|
+
"description": "Description of the team",
|
|
89464
|
+
"type": "string",
|
|
89465
|
+
"nullable": true,
|
|
89466
|
+
"example": "A great team."
|
|
89467
|
+
},
|
|
89468
|
+
"permission": {
|
|
89469
|
+
"description": "Permission that the team will have for its repositories",
|
|
89470
|
+
"type": "string",
|
|
89471
|
+
"example": "admin"
|
|
89472
|
+
},
|
|
89473
|
+
"privacy": {
|
|
89474
|
+
"description": "The level of privacy this team should have",
|
|
89475
|
+
"type": "string",
|
|
89476
|
+
"example": "closed"
|
|
89477
|
+
},
|
|
89478
|
+
"html_url": {
|
|
89479
|
+
"type": "string",
|
|
89480
|
+
"format": "uri",
|
|
89481
|
+
"example": "https://github.com/orgs/rails/teams/core"
|
|
89482
|
+
},
|
|
89483
|
+
"repositories_url": {
|
|
89484
|
+
"type": "string",
|
|
89485
|
+
"format": "uri",
|
|
89486
|
+
"example": "https://api.github.com/organizations/1/team/1/repos"
|
|
89487
|
+
},
|
|
89488
|
+
"slug": {
|
|
89489
|
+
"type": "string",
|
|
89490
|
+
"example": "justice-league"
|
|
89491
|
+
},
|
|
89492
|
+
"ldap_dn": {
|
|
89493
|
+
"description": "Distinguished Name (DN) that team maps to within LDAP environment",
|
|
89494
|
+
"example": "uid=example,ou=users,dc=github,dc=com",
|
|
89495
|
+
"type": "string"
|
|
89496
|
+
}
|
|
89497
|
+
},
|
|
89498
|
+
"required": [
|
|
89499
|
+
"id",
|
|
89500
|
+
"node_id",
|
|
89501
|
+
"url",
|
|
89502
|
+
"members_url",
|
|
89503
|
+
"name",
|
|
89504
|
+
"description",
|
|
89505
|
+
"permission",
|
|
89506
|
+
"html_url",
|
|
89507
|
+
"repositories_url",
|
|
89508
|
+
"slug"
|
|
89509
|
+
],
|
|
89510
|
+
"nullable": true
|
|
89511
|
+
},
|
|
89512
|
+
"members_count": {
|
|
89513
|
+
"type": "integer",
|
|
89514
|
+
"example": 3
|
|
89515
|
+
},
|
|
89516
|
+
"repos_count": {
|
|
89517
|
+
"type": "integer",
|
|
89518
|
+
"example": 10
|
|
89519
|
+
},
|
|
89520
|
+
"created_at": {
|
|
89521
|
+
"type": "string",
|
|
89522
|
+
"format": "date-time",
|
|
89523
|
+
"example": "2017-07-14T16:53:42Z"
|
|
89524
|
+
},
|
|
89525
|
+
"updated_at": {
|
|
89526
|
+
"type": "string",
|
|
89527
|
+
"format": "date-time",
|
|
89528
|
+
"example": "2017-08-17T12:37:15Z"
|
|
89529
|
+
},
|
|
89530
|
+
"organization": {
|
|
89531
|
+
"title": "Team Organization",
|
|
89532
|
+
"description": "Team Organization",
|
|
89533
|
+
"type": "object",
|
|
89534
|
+
"properties": {
|
|
89535
|
+
"login": {
|
|
89536
|
+
"type": "string",
|
|
89537
|
+
"example": "github"
|
|
89538
|
+
},
|
|
89539
|
+
"id": {
|
|
89540
|
+
"type": "integer",
|
|
89541
|
+
"example": 1
|
|
89542
|
+
},
|
|
89543
|
+
"node_id": {
|
|
89544
|
+
"type": "string",
|
|
89545
|
+
"example": "MDEyOk9yZ2FuaXphdGlvbjE="
|
|
89546
|
+
},
|
|
89547
|
+
"url": {
|
|
89548
|
+
"type": "string",
|
|
89549
|
+
"format": "uri",
|
|
89550
|
+
"example": "https://api.github.com/orgs/github"
|
|
89551
|
+
},
|
|
89552
|
+
"repos_url": {
|
|
89553
|
+
"type": "string",
|
|
89554
|
+
"format": "uri",
|
|
89555
|
+
"example": "https://api.github.com/orgs/github/repos"
|
|
89556
|
+
},
|
|
89557
|
+
"events_url": {
|
|
89558
|
+
"type": "string",
|
|
89559
|
+
"format": "uri",
|
|
89560
|
+
"example": "https://api.github.com/orgs/github/events"
|
|
89561
|
+
},
|
|
89562
|
+
"hooks_url": {
|
|
89563
|
+
"type": "string",
|
|
89564
|
+
"example": "https://api.github.com/orgs/github/hooks"
|
|
89565
|
+
},
|
|
89566
|
+
"issues_url": {
|
|
89567
|
+
"type": "string",
|
|
89568
|
+
"example": "https://api.github.com/orgs/github/issues"
|
|
89569
|
+
},
|
|
89570
|
+
"members_url": {
|
|
89571
|
+
"type": "string",
|
|
89572
|
+
"example": "https://api.github.com/orgs/github/members{/member}"
|
|
89573
|
+
},
|
|
89574
|
+
"public_members_url": {
|
|
89575
|
+
"type": "string",
|
|
89576
|
+
"example": "https://api.github.com/orgs/github/public_members{/member}"
|
|
89577
|
+
},
|
|
89578
|
+
"avatar_url": {
|
|
89579
|
+
"type": "string",
|
|
89580
|
+
"example": "https://github.com/images/error/octocat_happy.gif"
|
|
89581
|
+
},
|
|
89582
|
+
"description": {
|
|
89583
|
+
"type": "string",
|
|
89584
|
+
"example": "A great organization",
|
|
89585
|
+
"nullable": true
|
|
89586
|
+
},
|
|
89587
|
+
"name": {
|
|
89588
|
+
"type": "string",
|
|
89589
|
+
"example": "github"
|
|
89590
|
+
},
|
|
89591
|
+
"company": {
|
|
89592
|
+
"type": "string",
|
|
89593
|
+
"example": "GitHub"
|
|
89594
|
+
},
|
|
89595
|
+
"blog": {
|
|
89596
|
+
"type": "string",
|
|
89597
|
+
"format": "uri",
|
|
89598
|
+
"example": "https://github.com/blog"
|
|
89599
|
+
},
|
|
89600
|
+
"location": {
|
|
89601
|
+
"type": "string",
|
|
89602
|
+
"example": "San Francisco"
|
|
89603
|
+
},
|
|
89604
|
+
"email": {
|
|
89605
|
+
"type": "string",
|
|
89606
|
+
"format": "email",
|
|
89607
|
+
"example": "octocat@github.com"
|
|
89608
|
+
},
|
|
89609
|
+
"twitter_username": {
|
|
89610
|
+
"type": "string",
|
|
89611
|
+
"example": "github",
|
|
89612
|
+
"nullable": true
|
|
89613
|
+
},
|
|
89614
|
+
"is_verified": {
|
|
89615
|
+
"type": "boolean",
|
|
89616
|
+
"example": true
|
|
89617
|
+
},
|
|
89618
|
+
"has_organization_projects": {
|
|
89619
|
+
"type": "boolean",
|
|
89620
|
+
"example": true
|
|
89621
|
+
},
|
|
89622
|
+
"has_repository_projects": {
|
|
89623
|
+
"type": "boolean",
|
|
89624
|
+
"example": true
|
|
89625
|
+
},
|
|
89626
|
+
"public_repos": {
|
|
89627
|
+
"type": "integer",
|
|
89628
|
+
"example": 2
|
|
89629
|
+
},
|
|
89630
|
+
"public_gists": {
|
|
89631
|
+
"type": "integer",
|
|
89632
|
+
"example": 1
|
|
89633
|
+
},
|
|
89634
|
+
"followers": {
|
|
89635
|
+
"type": "integer",
|
|
89636
|
+
"example": 20
|
|
89637
|
+
},
|
|
89638
|
+
"following": {
|
|
89639
|
+
"type": "integer",
|
|
89640
|
+
"example": 0
|
|
89641
|
+
},
|
|
89642
|
+
"html_url": {
|
|
89643
|
+
"type": "string",
|
|
89644
|
+
"format": "uri",
|
|
89645
|
+
"example": "https://github.com/octocat"
|
|
89646
|
+
},
|
|
89647
|
+
"created_at": {
|
|
89648
|
+
"type": "string",
|
|
89649
|
+
"format": "date-time",
|
|
89650
|
+
"example": "2008-01-14T04:33:35Z"
|
|
89651
|
+
},
|
|
89652
|
+
"type": {
|
|
89653
|
+
"type": "string",
|
|
89654
|
+
"example": "Organization"
|
|
89655
|
+
},
|
|
89656
|
+
"total_private_repos": {
|
|
89657
|
+
"type": "integer",
|
|
89658
|
+
"example": 100
|
|
89659
|
+
},
|
|
89660
|
+
"owned_private_repos": {
|
|
89661
|
+
"type": "integer",
|
|
89662
|
+
"example": 100
|
|
89663
|
+
},
|
|
89664
|
+
"private_gists": {
|
|
89665
|
+
"type": "integer",
|
|
89666
|
+
"example": 81,
|
|
89667
|
+
"nullable": true
|
|
89668
|
+
},
|
|
89669
|
+
"disk_usage": {
|
|
89670
|
+
"type": "integer",
|
|
89671
|
+
"example": 10000,
|
|
89672
|
+
"nullable": true
|
|
89673
|
+
},
|
|
89674
|
+
"collaborators": {
|
|
89675
|
+
"type": "integer",
|
|
89676
|
+
"example": 8,
|
|
89677
|
+
"nullable": true
|
|
89678
|
+
},
|
|
89679
|
+
"billing_email": {
|
|
89680
|
+
"type": "string",
|
|
89681
|
+
"format": "email",
|
|
89682
|
+
"example": "org@example.com",
|
|
89683
|
+
"nullable": true
|
|
89684
|
+
},
|
|
89685
|
+
"plan": {
|
|
89686
|
+
"type": "object",
|
|
89687
|
+
"properties": {
|
|
89688
|
+
"name": {
|
|
89689
|
+
"type": "string"
|
|
89690
|
+
},
|
|
89691
|
+
"space": {
|
|
89692
|
+
"type": "integer"
|
|
89693
|
+
},
|
|
89694
|
+
"private_repos": {
|
|
89695
|
+
"type": "integer"
|
|
89696
|
+
},
|
|
89697
|
+
"filled_seats": {
|
|
89698
|
+
"type": "integer"
|
|
89699
|
+
},
|
|
89700
|
+
"seats": {
|
|
89701
|
+
"type": "integer"
|
|
89702
|
+
}
|
|
89703
|
+
},
|
|
89704
|
+
"required": [
|
|
89705
|
+
"name",
|
|
89706
|
+
"space",
|
|
89707
|
+
"private_repos"
|
|
89708
|
+
]
|
|
89709
|
+
},
|
|
89710
|
+
"default_repository_permission": {
|
|
89711
|
+
"type": "string",
|
|
89712
|
+
"nullable": true
|
|
89713
|
+
},
|
|
89714
|
+
"members_can_create_repositories": {
|
|
89715
|
+
"type": "boolean",
|
|
89716
|
+
"example": true,
|
|
89717
|
+
"nullable": true
|
|
89718
|
+
},
|
|
89719
|
+
"two_factor_requirement_enabled": {
|
|
89720
|
+
"type": "boolean",
|
|
89721
|
+
"example": true,
|
|
89722
|
+
"nullable": true
|
|
89723
|
+
},
|
|
89724
|
+
"members_allowed_repository_creation_type": {
|
|
89725
|
+
"type": "string",
|
|
89726
|
+
"example": "all"
|
|
89727
|
+
},
|
|
89728
|
+
"members_can_create_public_repositories": {
|
|
89729
|
+
"type": "boolean",
|
|
89730
|
+
"example": true
|
|
89731
|
+
},
|
|
89732
|
+
"members_can_create_private_repositories": {
|
|
89733
|
+
"type": "boolean",
|
|
89734
|
+
"example": true
|
|
89735
|
+
},
|
|
89736
|
+
"members_can_create_internal_repositories": {
|
|
89737
|
+
"type": "boolean",
|
|
89738
|
+
"example": true
|
|
89739
|
+
},
|
|
89740
|
+
"members_can_create_pages": {
|
|
89741
|
+
"type": "boolean",
|
|
89742
|
+
"example": true
|
|
89743
|
+
},
|
|
89744
|
+
"members_can_create_public_pages": {
|
|
89745
|
+
"type": "boolean",
|
|
89746
|
+
"example": true
|
|
89747
|
+
},
|
|
89748
|
+
"members_can_create_private_pages": {
|
|
89749
|
+
"type": "boolean",
|
|
89750
|
+
"example": true
|
|
89751
|
+
},
|
|
89752
|
+
"updated_at": {
|
|
89753
|
+
"type": "string",
|
|
89754
|
+
"format": "date-time"
|
|
89755
|
+
}
|
|
89756
|
+
},
|
|
89757
|
+
"required": [
|
|
89758
|
+
"login",
|
|
89759
|
+
"url",
|
|
89760
|
+
"id",
|
|
89761
|
+
"node_id",
|
|
89762
|
+
"repos_url",
|
|
89763
|
+
"events_url",
|
|
89764
|
+
"hooks_url",
|
|
89765
|
+
"issues_url",
|
|
89766
|
+
"members_url",
|
|
89767
|
+
"public_members_url",
|
|
89768
|
+
"avatar_url",
|
|
89769
|
+
"description",
|
|
89770
|
+
"html_url",
|
|
89771
|
+
"has_organization_projects",
|
|
89772
|
+
"has_repository_projects",
|
|
89773
|
+
"public_repos",
|
|
89774
|
+
"public_gists",
|
|
89775
|
+
"followers",
|
|
89776
|
+
"following",
|
|
89777
|
+
"type",
|
|
89778
|
+
"created_at",
|
|
89779
|
+
"updated_at"
|
|
89780
|
+
]
|
|
89781
|
+
},
|
|
89782
|
+
"ldap_dn": {
|
|
89783
|
+
"description": "Distinguished Name (DN) that team maps to within LDAP environment",
|
|
89784
|
+
"example": "uid=example,ou=users,dc=github,dc=com",
|
|
89785
|
+
"type": "string"
|
|
89786
|
+
}
|
|
89787
|
+
},
|
|
89788
|
+
"required": [
|
|
89789
|
+
"id",
|
|
89790
|
+
"node_id",
|
|
89791
|
+
"url",
|
|
89792
|
+
"members_url",
|
|
89793
|
+
"name",
|
|
89794
|
+
"description",
|
|
89795
|
+
"permission",
|
|
89796
|
+
"html_url",
|
|
89797
|
+
"repositories_url",
|
|
89798
|
+
"slug",
|
|
89799
|
+
"created_at",
|
|
89800
|
+
"updated_at",
|
|
89801
|
+
"members_count",
|
|
89802
|
+
"repos_count",
|
|
89803
|
+
"organization"
|
|
89804
|
+
]
|
|
89805
|
+
},
|
|
89806
|
+
"examples": {
|
|
89807
|
+
"default": {
|
|
89808
|
+
"value": {
|
|
89809
|
+
"id": 1,
|
|
89810
|
+
"node_id": "MDQ6VGVhbTE=",
|
|
89811
|
+
"url": "https://api.github.com/teams/1",
|
|
89812
|
+
"html_url": "https://github.com/orgs/github/teams/justice-league",
|
|
89813
|
+
"name": "Justice League",
|
|
89814
|
+
"slug": "justice-league",
|
|
89815
|
+
"description": "A great team.",
|
|
89816
|
+
"privacy": "closed",
|
|
89817
|
+
"permission": "admin",
|
|
89818
|
+
"members_url": "https://api.github.com/teams/1/members{/member}",
|
|
89819
|
+
"repositories_url": "https://api.github.com/teams/1/repos",
|
|
89820
|
+
"members_count": 3,
|
|
89821
|
+
"repos_count": 10,
|
|
89822
|
+
"created_at": "2017-07-14T16:53:42Z",
|
|
89823
|
+
"updated_at": "2017-08-17T12:37:15Z",
|
|
89824
|
+
"organization": {
|
|
89825
|
+
"login": "github",
|
|
89826
|
+
"id": 1,
|
|
89827
|
+
"node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
|
|
89828
|
+
"url": "https://api.github.com/orgs/github",
|
|
89829
|
+
"repos_url": "https://api.github.com/orgs/github/repos",
|
|
89830
|
+
"events_url": "https://api.github.com/orgs/github/events",
|
|
89831
|
+
"hooks_url": "https://api.github.com/orgs/github/hooks",
|
|
89832
|
+
"issues_url": "https://api.github.com/orgs/github/issues",
|
|
89833
|
+
"members_url": "https://api.github.com/orgs/github/members{/member}",
|
|
89834
|
+
"public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
|
|
89835
|
+
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
|
89836
|
+
"description": "A great organization",
|
|
89837
|
+
"name": "github",
|
|
89838
|
+
"company": "GitHub",
|
|
89839
|
+
"blog": "https://github.com/blog",
|
|
89840
|
+
"location": "San Francisco",
|
|
89841
|
+
"email": "octocat@github.com",
|
|
89842
|
+
"has_organization_projects": true,
|
|
89843
|
+
"has_repository_projects": true,
|
|
89844
|
+
"public_repos": 2,
|
|
89845
|
+
"public_gists": 1,
|
|
89846
|
+
"followers": 20,
|
|
89847
|
+
"following": 0,
|
|
89848
|
+
"html_url": "https://github.com/octocat",
|
|
89849
|
+
"created_at": "2008-01-14T04:33:35Z",
|
|
89850
|
+
"updated_at": "2017-08-17T12:37:15Z",
|
|
89851
|
+
"type": "Organization"
|
|
89852
|
+
},
|
|
89853
|
+
"ldap_dn": "uid=asdf,ou=users,dc=github,dc=com"
|
|
89854
|
+
}
|
|
89855
|
+
}
|
|
89856
|
+
}
|
|
89857
|
+
}
|
|
89858
|
+
}
|
|
89859
|
+
},
|
|
89860
|
+
"403": {
|
|
89861
|
+
"description": "Forbidden",
|
|
89862
|
+
"content": {
|
|
89863
|
+
"application/json": {
|
|
89864
|
+
"schema": {
|
|
89865
|
+
"title": "Basic Error",
|
|
89866
|
+
"description": "Basic Error",
|
|
89867
|
+
"type": "object",
|
|
89868
|
+
"properties": {
|
|
89869
|
+
"message": {
|
|
89870
|
+
"type": "string"
|
|
89871
|
+
},
|
|
89872
|
+
"documentation_url": {
|
|
89873
|
+
"type": "string"
|
|
89874
|
+
},
|
|
89875
|
+
"url": {
|
|
89876
|
+
"type": "string"
|
|
89877
|
+
},
|
|
89878
|
+
"status": {
|
|
89879
|
+
"type": "string"
|
|
89880
|
+
}
|
|
89881
|
+
}
|
|
89882
|
+
}
|
|
89883
|
+
}
|
|
89884
|
+
}
|
|
89885
|
+
},
|
|
89886
|
+
"422": {
|
|
89887
|
+
"description": "Validation failed",
|
|
89888
|
+
"content": {
|
|
89889
|
+
"application/json": {
|
|
89890
|
+
"schema": {
|
|
89891
|
+
"title": "Validation Error",
|
|
89892
|
+
"description": "Validation Error",
|
|
89893
|
+
"type": "object",
|
|
89894
|
+
"required": [
|
|
89895
|
+
"message",
|
|
89896
|
+
"documentation_url"
|
|
89897
|
+
],
|
|
89898
|
+
"properties": {
|
|
89899
|
+
"message": {
|
|
89900
|
+
"type": "string"
|
|
89901
|
+
},
|
|
89902
|
+
"documentation_url": {
|
|
89903
|
+
"type": "string"
|
|
89904
|
+
},
|
|
89905
|
+
"errors": {
|
|
89906
|
+
"type": "array",
|
|
89907
|
+
"items": {
|
|
89908
|
+
"type": "object",
|
|
89909
|
+
"required": [
|
|
89910
|
+
"code"
|
|
89911
|
+
],
|
|
89912
|
+
"properties": {
|
|
89913
|
+
"resource": {
|
|
89914
|
+
"type": "string"
|
|
89915
|
+
},
|
|
89916
|
+
"field": {
|
|
89917
|
+
"type": "string"
|
|
89918
|
+
},
|
|
89919
|
+
"message": {
|
|
89920
|
+
"type": "string"
|
|
89921
|
+
},
|
|
89922
|
+
"code": {
|
|
89923
|
+
"type": "string"
|
|
89924
|
+
},
|
|
89925
|
+
"index": {
|
|
89926
|
+
"type": "integer"
|
|
89927
|
+
},
|
|
89928
|
+
"value": {
|
|
89929
|
+
"oneOf": [
|
|
89930
|
+
{
|
|
89931
|
+
"type": "string",
|
|
89932
|
+
"nullable": true
|
|
89933
|
+
},
|
|
89934
|
+
{
|
|
89935
|
+
"type": "integer",
|
|
89936
|
+
"nullable": true
|
|
89937
|
+
},
|
|
89938
|
+
{
|
|
89939
|
+
"type": "array",
|
|
89940
|
+
"nullable": true,
|
|
89941
|
+
"items": {
|
|
89942
|
+
"type": "string"
|
|
89943
|
+
}
|
|
89944
|
+
}
|
|
89945
|
+
]
|
|
89946
|
+
}
|
|
89947
|
+
}
|
|
89948
|
+
}
|
|
89949
|
+
}
|
|
89950
|
+
}
|
|
89951
|
+
}
|
|
89952
|
+
}
|
|
89953
|
+
}
|
|
89954
|
+
}
|
|
89955
|
+
},
|
|
89956
|
+
"x-github": {
|
|
89957
|
+
"githubCloudOnly": false,
|
|
89958
|
+
"enabledForGitHubApps": true,
|
|
89959
|
+
"category": "teams",
|
|
89960
|
+
"subcategory": null
|
|
89961
|
+
},
|
|
89962
|
+
"x-octokit": {
|
|
89963
|
+
"diff": {
|
|
89964
|
+
"ghes-3.4": {
|
|
89965
|
+
"type": "changed"
|
|
89966
|
+
}
|
|
89967
|
+
}
|
|
89968
|
+
}
|
|
89969
|
+
}
|
|
89970
|
+
},
|
|
89971
|
+
"/orgs/{org}/teams/{team_slug}": {
|
|
89972
|
+
"get": {
|
|
89973
|
+
"summary": "Get a team by name",
|
|
89974
|
+
"description": "Gets a team using the team's `slug`. GitHub Enterprise Server generates the `slug` from the team `name`.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}`.",
|
|
89274
89975
|
"tags": [
|
|
89275
89976
|
"teams"
|
|
89276
89977
|
],
|
|
89277
|
-
"operationId": "teams/
|
|
89978
|
+
"operationId": "teams/get-by-name",
|
|
89278
89979
|
"externalDocs": {
|
|
89279
89980
|
"description": "API method documentation",
|
|
89280
|
-
"url": "https://docs.github.com/enterprise-server@3.3/rest/reference/teams#
|
|
89981
|
+
"url": "https://docs.github.com/enterprise-server@3.3/rest/reference/teams#get-a-team-by-name"
|
|
89281
89982
|
},
|
|
89282
89983
|
"parameters": [
|
|
89283
89984
|
{
|
|
@@ -89288,82 +89989,19 @@
|
|
|
89288
89989
|
"schema": {
|
|
89289
89990
|
"type": "string"
|
|
89290
89991
|
}
|
|
89291
|
-
}
|
|
89292
|
-
|
|
89293
|
-
|
|
89294
|
-
|
|
89295
|
-
|
|
89296
|
-
"
|
|
89297
|
-
|
|
89298
|
-
|
|
89299
|
-
"properties": {
|
|
89300
|
-
"name": {
|
|
89301
|
-
"type": "string",
|
|
89302
|
-
"description": "The name of the team."
|
|
89303
|
-
},
|
|
89304
|
-
"description": {
|
|
89305
|
-
"type": "string",
|
|
89306
|
-
"description": "The description of the team."
|
|
89307
|
-
},
|
|
89308
|
-
"maintainers": {
|
|
89309
|
-
"type": "array",
|
|
89310
|
-
"description": "List GitHub IDs for organization members who will become team maintainers.",
|
|
89311
|
-
"items": {
|
|
89312
|
-
"type": "string"
|
|
89313
|
-
}
|
|
89314
|
-
},
|
|
89315
|
-
"repo_names": {
|
|
89316
|
-
"type": "array",
|
|
89317
|
-
"description": "The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to.",
|
|
89318
|
-
"items": {
|
|
89319
|
-
"type": "string"
|
|
89320
|
-
}
|
|
89321
|
-
},
|
|
89322
|
-
"privacy": {
|
|
89323
|
-
"type": "string",
|
|
89324
|
-
"description": "The level of privacy this team should have. The options are: \n**For 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` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed`",
|
|
89325
|
-
"enum": [
|
|
89326
|
-
"secret",
|
|
89327
|
-
"closed"
|
|
89328
|
-
]
|
|
89329
|
-
},
|
|
89330
|
-
"permission": {
|
|
89331
|
-
"type": "string",
|
|
89332
|
-
"description": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified.",
|
|
89333
|
-
"enum": [
|
|
89334
|
-
"pull",
|
|
89335
|
-
"push"
|
|
89336
|
-
],
|
|
89337
|
-
"default": "pull"
|
|
89338
|
-
},
|
|
89339
|
-
"parent_team_id": {
|
|
89340
|
-
"type": "integer",
|
|
89341
|
-
"description": "The ID of a team to set as the parent team."
|
|
89342
|
-
},
|
|
89343
|
-
"ldap_dn": {
|
|
89344
|
-
"type": "string",
|
|
89345
|
-
"description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team. LDAP synchronization must be enabled to map LDAP entries to a team. Use the \"[Update LDAP mapping for a team](https://docs.github.com/enterprise-server@3.3/rest/reference/enterprise-admin#update-ldap-mapping-for-a-team)\" endpoint to change the LDAP DN. For more information, see \"[Using LDAP](https://docs.github.com/enterprise-server@3.3/admin/identity-and-access-management/authenticating-users-for-your-github-enterprise-server-instance/using-ldap#enabling-ldap-sync).\""
|
|
89346
|
-
}
|
|
89347
|
-
},
|
|
89348
|
-
"required": [
|
|
89349
|
-
"name"
|
|
89350
|
-
]
|
|
89351
|
-
},
|
|
89352
|
-
"examples": {
|
|
89353
|
-
"default": {
|
|
89354
|
-
"value": {
|
|
89355
|
-
"name": "Justice League",
|
|
89356
|
-
"description": "A great team",
|
|
89357
|
-
"permission": "push",
|
|
89358
|
-
"privacy": "closed"
|
|
89359
|
-
}
|
|
89360
|
-
}
|
|
89361
|
-
}
|
|
89992
|
+
},
|
|
89993
|
+
{
|
|
89994
|
+
"name": "team_slug",
|
|
89995
|
+
"description": "The slug of the team name.",
|
|
89996
|
+
"in": "path",
|
|
89997
|
+
"required": true,
|
|
89998
|
+
"schema": {
|
|
89999
|
+
"type": "string"
|
|
89362
90000
|
}
|
|
89363
90001
|
}
|
|
89364
|
-
|
|
90002
|
+
],
|
|
89365
90003
|
"responses": {
|
|
89366
|
-
"
|
|
90004
|
+
"200": {
|
|
89367
90005
|
"description": "Response",
|
|
89368
90006
|
"content": {
|
|
89369
90007
|
"application/json": {
|
|
@@ -89856,8 +90494,8 @@
|
|
|
89856
90494
|
}
|
|
89857
90495
|
}
|
|
89858
90496
|
},
|
|
89859
|
-
"
|
|
89860
|
-
"description": "
|
|
90497
|
+
"404": {
|
|
90498
|
+
"description": "Resource not found",
|
|
89861
90499
|
"content": {
|
|
89862
90500
|
"application/json": {
|
|
89863
90501
|
"schema": {
|
|
@@ -89881,75 +90519,6 @@
|
|
|
89881
90519
|
}
|
|
89882
90520
|
}
|
|
89883
90521
|
}
|
|
89884
|
-
},
|
|
89885
|
-
"422": {
|
|
89886
|
-
"description": "Validation failed",
|
|
89887
|
-
"content": {
|
|
89888
|
-
"application/json": {
|
|
89889
|
-
"schema": {
|
|
89890
|
-
"title": "Validation Error",
|
|
89891
|
-
"description": "Validation Error",
|
|
89892
|
-
"type": "object",
|
|
89893
|
-
"required": [
|
|
89894
|
-
"message",
|
|
89895
|
-
"documentation_url"
|
|
89896
|
-
],
|
|
89897
|
-
"properties": {
|
|
89898
|
-
"message": {
|
|
89899
|
-
"type": "string"
|
|
89900
|
-
},
|
|
89901
|
-
"documentation_url": {
|
|
89902
|
-
"type": "string"
|
|
89903
|
-
},
|
|
89904
|
-
"errors": {
|
|
89905
|
-
"type": "array",
|
|
89906
|
-
"items": {
|
|
89907
|
-
"type": "object",
|
|
89908
|
-
"required": [
|
|
89909
|
-
"code"
|
|
89910
|
-
],
|
|
89911
|
-
"properties": {
|
|
89912
|
-
"resource": {
|
|
89913
|
-
"type": "string"
|
|
89914
|
-
},
|
|
89915
|
-
"field": {
|
|
89916
|
-
"type": "string"
|
|
89917
|
-
},
|
|
89918
|
-
"message": {
|
|
89919
|
-
"type": "string"
|
|
89920
|
-
},
|
|
89921
|
-
"code": {
|
|
89922
|
-
"type": "string"
|
|
89923
|
-
},
|
|
89924
|
-
"index": {
|
|
89925
|
-
"type": "integer"
|
|
89926
|
-
},
|
|
89927
|
-
"value": {
|
|
89928
|
-
"oneOf": [
|
|
89929
|
-
{
|
|
89930
|
-
"type": "string",
|
|
89931
|
-
"nullable": true
|
|
89932
|
-
},
|
|
89933
|
-
{
|
|
89934
|
-
"type": "integer",
|
|
89935
|
-
"nullable": true
|
|
89936
|
-
},
|
|
89937
|
-
{
|
|
89938
|
-
"type": "array",
|
|
89939
|
-
"nullable": true,
|
|
89940
|
-
"items": {
|
|
89941
|
-
"type": "string"
|
|
89942
|
-
}
|
|
89943
|
-
}
|
|
89944
|
-
]
|
|
89945
|
-
}
|
|
89946
|
-
}
|
|
89947
|
-
}
|
|
89948
|
-
}
|
|
89949
|
-
}
|
|
89950
|
-
}
|
|
89951
|
-
}
|
|
89952
|
-
}
|
|
89953
90522
|
}
|
|
89954
90523
|
},
|
|
89955
90524
|
"x-github": {
|
|
@@ -89965,19 +90534,17 @@
|
|
|
89965
90534
|
}
|
|
89966
90535
|
}
|
|
89967
90536
|
}
|
|
89968
|
-
}
|
|
89969
|
-
|
|
89970
|
-
|
|
89971
|
-
|
|
89972
|
-
"summary": "Get a team by name",
|
|
89973
|
-
"description": "Gets a team using the team's `slug`. GitHub Enterprise Server generates the `slug` from the team `name`.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}`.",
|
|
90537
|
+
},
|
|
90538
|
+
"patch": {
|
|
90539
|
+
"summary": "Update a team",
|
|
90540
|
+
"description": "To edit a team, the authenticated user must either be an organization owner or a team maintainer.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/{org_id}/team/{team_id}`.",
|
|
89974
90541
|
"tags": [
|
|
89975
90542
|
"teams"
|
|
89976
90543
|
],
|
|
89977
|
-
"operationId": "teams/
|
|
90544
|
+
"operationId": "teams/update-in-org",
|
|
89978
90545
|
"externalDocs": {
|
|
89979
90546
|
"description": "API method documentation",
|
|
89980
|
-
"url": "https://docs.github.com/enterprise-server@3.3/rest/reference/teams#
|
|
90547
|
+
"url": "https://docs.github.com/enterprise-server@3.3/rest/reference/teams#update-a-team"
|
|
89981
90548
|
},
|
|
89982
90549
|
"parameters": [
|
|
89983
90550
|
{
|
|
@@ -89999,9 +90566,61 @@
|
|
|
89999
90566
|
}
|
|
90000
90567
|
}
|
|
90001
90568
|
],
|
|
90569
|
+
"requestBody": {
|
|
90570
|
+
"required": false,
|
|
90571
|
+
"content": {
|
|
90572
|
+
"application/json": {
|
|
90573
|
+
"schema": {
|
|
90574
|
+
"type": "object",
|
|
90575
|
+
"properties": {
|
|
90576
|
+
"name": {
|
|
90577
|
+
"type": "string",
|
|
90578
|
+
"description": "The name of the team."
|
|
90579
|
+
},
|
|
90580
|
+
"description": {
|
|
90581
|
+
"type": "string",
|
|
90582
|
+
"description": "The description of the team."
|
|
90583
|
+
},
|
|
90584
|
+
"privacy": {
|
|
90585
|
+
"type": "string",
|
|
90586
|
+
"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: \n**For 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. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
|
|
90587
|
+
"enum": [
|
|
90588
|
+
"secret",
|
|
90589
|
+
"closed"
|
|
90590
|
+
]
|
|
90591
|
+
},
|
|
90592
|
+
"permission": {
|
|
90593
|
+
"type": "string",
|
|
90594
|
+
"description": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified.",
|
|
90595
|
+
"enum": [
|
|
90596
|
+
"pull",
|
|
90597
|
+
"push",
|
|
90598
|
+
"admin"
|
|
90599
|
+
],
|
|
90600
|
+
"default": "pull"
|
|
90601
|
+
},
|
|
90602
|
+
"parent_team_id": {
|
|
90603
|
+
"type": "integer",
|
|
90604
|
+
"description": "The ID of a team to set as the parent team.",
|
|
90605
|
+
"nullable": true
|
|
90606
|
+
}
|
|
90607
|
+
}
|
|
90608
|
+
},
|
|
90609
|
+
"examples": {
|
|
90610
|
+
"default": {
|
|
90611
|
+
"value": {
|
|
90612
|
+
"name": "new team name",
|
|
90613
|
+
"description": "new team description",
|
|
90614
|
+
"privacy": "closed"
|
|
90615
|
+
}
|
|
90616
|
+
}
|
|
90617
|
+
}
|
|
90618
|
+
}
|
|
90619
|
+
}
|
|
90620
|
+
},
|
|
90002
90621
|
"responses": {
|
|
90003
90622
|
"200": {
|
|
90004
|
-
"description": "Response",
|
|
90623
|
+
"description": "Response when the updated information already exists",
|
|
90005
90624
|
"content": {
|
|
90006
90625
|
"application/json": {
|
|
90007
90626
|
"schema": {
|
|
@@ -90493,131 +91112,6 @@
|
|
|
90493
91112
|
}
|
|
90494
91113
|
}
|
|
90495
91114
|
},
|
|
90496
|
-
"404": {
|
|
90497
|
-
"description": "Resource not found",
|
|
90498
|
-
"content": {
|
|
90499
|
-
"application/json": {
|
|
90500
|
-
"schema": {
|
|
90501
|
-
"title": "Basic Error",
|
|
90502
|
-
"description": "Basic Error",
|
|
90503
|
-
"type": "object",
|
|
90504
|
-
"properties": {
|
|
90505
|
-
"message": {
|
|
90506
|
-
"type": "string"
|
|
90507
|
-
},
|
|
90508
|
-
"documentation_url": {
|
|
90509
|
-
"type": "string"
|
|
90510
|
-
},
|
|
90511
|
-
"url": {
|
|
90512
|
-
"type": "string"
|
|
90513
|
-
},
|
|
90514
|
-
"status": {
|
|
90515
|
-
"type": "string"
|
|
90516
|
-
}
|
|
90517
|
-
}
|
|
90518
|
-
}
|
|
90519
|
-
}
|
|
90520
|
-
}
|
|
90521
|
-
}
|
|
90522
|
-
},
|
|
90523
|
-
"x-github": {
|
|
90524
|
-
"githubCloudOnly": false,
|
|
90525
|
-
"enabledForGitHubApps": true,
|
|
90526
|
-
"category": "teams",
|
|
90527
|
-
"subcategory": null
|
|
90528
|
-
},
|
|
90529
|
-
"x-octokit": {
|
|
90530
|
-
"diff": {
|
|
90531
|
-
"ghes-3.4": {
|
|
90532
|
-
"type": "changed"
|
|
90533
|
-
}
|
|
90534
|
-
}
|
|
90535
|
-
}
|
|
90536
|
-
},
|
|
90537
|
-
"patch": {
|
|
90538
|
-
"summary": "Update a team",
|
|
90539
|
-
"description": "To edit a team, the authenticated user must either be an organization owner or a team maintainer.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/{org_id}/team/{team_id}`.",
|
|
90540
|
-
"tags": [
|
|
90541
|
-
"teams"
|
|
90542
|
-
],
|
|
90543
|
-
"operationId": "teams/update-in-org",
|
|
90544
|
-
"externalDocs": {
|
|
90545
|
-
"description": "API method documentation",
|
|
90546
|
-
"url": "https://docs.github.com/enterprise-server@3.3/rest/reference/teams#update-a-team"
|
|
90547
|
-
},
|
|
90548
|
-
"parameters": [
|
|
90549
|
-
{
|
|
90550
|
-
"name": "org",
|
|
90551
|
-
"description": "The organization name. The name is not case sensitive.",
|
|
90552
|
-
"in": "path",
|
|
90553
|
-
"required": true,
|
|
90554
|
-
"schema": {
|
|
90555
|
-
"type": "string"
|
|
90556
|
-
}
|
|
90557
|
-
},
|
|
90558
|
-
{
|
|
90559
|
-
"name": "team_slug",
|
|
90560
|
-
"description": "The slug of the team name.",
|
|
90561
|
-
"in": "path",
|
|
90562
|
-
"required": true,
|
|
90563
|
-
"schema": {
|
|
90564
|
-
"type": "string"
|
|
90565
|
-
}
|
|
90566
|
-
}
|
|
90567
|
-
],
|
|
90568
|
-
"requestBody": {
|
|
90569
|
-
"required": false,
|
|
90570
|
-
"content": {
|
|
90571
|
-
"application/json": {
|
|
90572
|
-
"schema": {
|
|
90573
|
-
"type": "object",
|
|
90574
|
-
"properties": {
|
|
90575
|
-
"name": {
|
|
90576
|
-
"type": "string",
|
|
90577
|
-
"description": "The name of the team."
|
|
90578
|
-
},
|
|
90579
|
-
"description": {
|
|
90580
|
-
"type": "string",
|
|
90581
|
-
"description": "The description of the team."
|
|
90582
|
-
},
|
|
90583
|
-
"privacy": {
|
|
90584
|
-
"type": "string",
|
|
90585
|
-
"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: \n**For 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. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
|
|
90586
|
-
"enum": [
|
|
90587
|
-
"secret",
|
|
90588
|
-
"closed"
|
|
90589
|
-
]
|
|
90590
|
-
},
|
|
90591
|
-
"permission": {
|
|
90592
|
-
"type": "string",
|
|
90593
|
-
"description": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified.",
|
|
90594
|
-
"enum": [
|
|
90595
|
-
"pull",
|
|
90596
|
-
"push",
|
|
90597
|
-
"admin"
|
|
90598
|
-
],
|
|
90599
|
-
"default": "pull"
|
|
90600
|
-
},
|
|
90601
|
-
"parent_team_id": {
|
|
90602
|
-
"type": "integer",
|
|
90603
|
-
"description": "The ID of a team to set as the parent team.",
|
|
90604
|
-
"nullable": true
|
|
90605
|
-
}
|
|
90606
|
-
}
|
|
90607
|
-
},
|
|
90608
|
-
"examples": {
|
|
90609
|
-
"default": {
|
|
90610
|
-
"value": {
|
|
90611
|
-
"name": "new team name",
|
|
90612
|
-
"description": "new team description",
|
|
90613
|
-
"privacy": "closed"
|
|
90614
|
-
}
|
|
90615
|
-
}
|
|
90616
|
-
}
|
|
90617
|
-
}
|
|
90618
|
-
}
|
|
90619
|
-
},
|
|
90620
|
-
"responses": {
|
|
90621
91115
|
"201": {
|
|
90622
91116
|
"description": "Response",
|
|
90623
91117
|
"content": {
|
|
@@ -91110,6 +91604,127 @@
|
|
|
91110
91604
|
}
|
|
91111
91605
|
}
|
|
91112
91606
|
}
|
|
91607
|
+
},
|
|
91608
|
+
"403": {
|
|
91609
|
+
"description": "Forbidden",
|
|
91610
|
+
"content": {
|
|
91611
|
+
"application/json": {
|
|
91612
|
+
"schema": {
|
|
91613
|
+
"title": "Basic Error",
|
|
91614
|
+
"description": "Basic Error",
|
|
91615
|
+
"type": "object",
|
|
91616
|
+
"properties": {
|
|
91617
|
+
"message": {
|
|
91618
|
+
"type": "string"
|
|
91619
|
+
},
|
|
91620
|
+
"documentation_url": {
|
|
91621
|
+
"type": "string"
|
|
91622
|
+
},
|
|
91623
|
+
"url": {
|
|
91624
|
+
"type": "string"
|
|
91625
|
+
},
|
|
91626
|
+
"status": {
|
|
91627
|
+
"type": "string"
|
|
91628
|
+
}
|
|
91629
|
+
}
|
|
91630
|
+
}
|
|
91631
|
+
}
|
|
91632
|
+
}
|
|
91633
|
+
},
|
|
91634
|
+
"404": {
|
|
91635
|
+
"description": "Resource not found",
|
|
91636
|
+
"content": {
|
|
91637
|
+
"application/json": {
|
|
91638
|
+
"schema": {
|
|
91639
|
+
"title": "Basic Error",
|
|
91640
|
+
"description": "Basic Error",
|
|
91641
|
+
"type": "object",
|
|
91642
|
+
"properties": {
|
|
91643
|
+
"message": {
|
|
91644
|
+
"type": "string"
|
|
91645
|
+
},
|
|
91646
|
+
"documentation_url": {
|
|
91647
|
+
"type": "string"
|
|
91648
|
+
},
|
|
91649
|
+
"url": {
|
|
91650
|
+
"type": "string"
|
|
91651
|
+
},
|
|
91652
|
+
"status": {
|
|
91653
|
+
"type": "string"
|
|
91654
|
+
}
|
|
91655
|
+
}
|
|
91656
|
+
}
|
|
91657
|
+
}
|
|
91658
|
+
}
|
|
91659
|
+
},
|
|
91660
|
+
"422": {
|
|
91661
|
+
"description": "Validation failed",
|
|
91662
|
+
"content": {
|
|
91663
|
+
"application/json": {
|
|
91664
|
+
"schema": {
|
|
91665
|
+
"title": "Validation Error",
|
|
91666
|
+
"description": "Validation Error",
|
|
91667
|
+
"type": "object",
|
|
91668
|
+
"required": [
|
|
91669
|
+
"message",
|
|
91670
|
+
"documentation_url"
|
|
91671
|
+
],
|
|
91672
|
+
"properties": {
|
|
91673
|
+
"message": {
|
|
91674
|
+
"type": "string"
|
|
91675
|
+
},
|
|
91676
|
+
"documentation_url": {
|
|
91677
|
+
"type": "string"
|
|
91678
|
+
},
|
|
91679
|
+
"errors": {
|
|
91680
|
+
"type": "array",
|
|
91681
|
+
"items": {
|
|
91682
|
+
"type": "object",
|
|
91683
|
+
"required": [
|
|
91684
|
+
"code"
|
|
91685
|
+
],
|
|
91686
|
+
"properties": {
|
|
91687
|
+
"resource": {
|
|
91688
|
+
"type": "string"
|
|
91689
|
+
},
|
|
91690
|
+
"field": {
|
|
91691
|
+
"type": "string"
|
|
91692
|
+
},
|
|
91693
|
+
"message": {
|
|
91694
|
+
"type": "string"
|
|
91695
|
+
},
|
|
91696
|
+
"code": {
|
|
91697
|
+
"type": "string"
|
|
91698
|
+
},
|
|
91699
|
+
"index": {
|
|
91700
|
+
"type": "integer"
|
|
91701
|
+
},
|
|
91702
|
+
"value": {
|
|
91703
|
+
"oneOf": [
|
|
91704
|
+
{
|
|
91705
|
+
"type": "string",
|
|
91706
|
+
"nullable": true
|
|
91707
|
+
},
|
|
91708
|
+
{
|
|
91709
|
+
"type": "integer",
|
|
91710
|
+
"nullable": true
|
|
91711
|
+
},
|
|
91712
|
+
{
|
|
91713
|
+
"type": "array",
|
|
91714
|
+
"nullable": true,
|
|
91715
|
+
"items": {
|
|
91716
|
+
"type": "string"
|
|
91717
|
+
}
|
|
91718
|
+
}
|
|
91719
|
+
]
|
|
91720
|
+
}
|
|
91721
|
+
}
|
|
91722
|
+
}
|
|
91723
|
+
}
|
|
91724
|
+
}
|
|
91725
|
+
}
|
|
91726
|
+
}
|
|
91727
|
+
}
|
|
91113
91728
|
}
|
|
91114
91729
|
},
|
|
91115
91730
|
"x-github": {
|
|
@@ -112510,8 +113125,9 @@
|
|
|
112510
113125
|
},
|
|
112511
113126
|
"use_squash_pr_title_as_default": {
|
|
112512
113127
|
"type": "boolean",
|
|
112513
|
-
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
|
|
112514
|
-
"default": false
|
|
113128
|
+
"description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.",
|
|
113129
|
+
"default": false,
|
|
113130
|
+
"deprecated": true
|
|
112515
113131
|
},
|
|
112516
113132
|
"squash_merge_commit_title": {
|
|
112517
113133
|
"type": "string",
|
|
@@ -133259,7 +133875,7 @@
|
|
|
133259
133875
|
},
|
|
133260
133876
|
"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs": {
|
|
133261
133877
|
"get": {
|
|
133262
|
-
"summary": "List workflow runs",
|
|
133878
|
+
"summary": "List workflow runs for a workflow",
|
|
133263
133879
|
"description": "List all workflow runs for a workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/enterprise-server@3.3/rest/overview/resources-in-the-rest-api#parameters).\n\nAnyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope.",
|
|
133264
133880
|
"tags": [
|
|
133265
133881
|
"actions"
|
|
@@ -190168,6 +190784,7 @@
|
|
|
190168
190784
|
"description": "The base branch and head branch to compare. This parameter expects the format `{base}...{head}`.",
|
|
190169
190785
|
"in": "path",
|
|
190170
190786
|
"required": true,
|
|
190787
|
+
"x-multi-segment": true,
|
|
190171
190788
|
"schema": {
|
|
190172
190789
|
"type": "string"
|
|
190173
190790
|
}
|
|
@@ -194016,7 +194633,7 @@
|
|
|
194016
194633
|
},
|
|
194017
194634
|
"sha": {
|
|
194018
194635
|
"type": "string",
|
|
194019
|
-
"description": "The blob SHA of the file being
|
|
194636
|
+
"description": "The blob SHA of the file being deleted."
|
|
194020
194637
|
},
|
|
194021
194638
|
"branch": {
|
|
194022
194639
|
"type": "string",
|
|
@@ -214377,7 +214994,7 @@
|
|
|
214377
214994
|
"/repos/{owner}/{repo}/git/trees/{tree_sha}": {
|
|
214378
214995
|
"get": {
|
|
214379
214996
|
"summary": "Get a tree",
|
|
214380
|
-
"description": "Returns a single tree using the SHA1 value for that tree.\n\nIf `truncated` is `true` in the response then the number of items in the `tree` array exceeded our maximum limit. If you need to fetch more items, use the non-recursive method of fetching trees, and fetch one sub-tree at a time.",
|
|
214997
|
+
"description": "Returns a single tree using the SHA1 value for that tree.\n\nIf `truncated` is `true` in the response then the number of items in the `tree` array exceeded our maximum limit. If you need to fetch more items, use the non-recursive method of fetching trees, and fetch one sub-tree at a time.\n\n\n**Note**: The limit for the `tree` array is 100,000 entries with a maximum size of 7 MB when using the `recursive` parameter.",
|
|
214381
214998
|
"tags": [
|
|
214382
214999
|
"git"
|
|
214383
215000
|
],
|