Skip to content

Commit 1f6da69

Browse files
Update OpenAPI 3.1 Descriptions
1 parent aa8c601 commit 1f6da69

16 files changed

+8008
-3868
lines changed

descriptions-next/api.github.com/api.github.com.2022-11-28.json

Lines changed: 49 additions & 10 deletions
Large diffs are not rendered by default.

descriptions-next/api.github.com/api.github.com.2022-11-28.yaml

Lines changed: 45 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,6 +1767,9 @@ paths:
17671767
get:
17681768
summary: Get Copilot metrics for an enterprise team
17691769
description: |-
1770+
> [!NOTE]
1771+
> This endpoint is only applicable to dedicated enterprise accounts for Copilot Business. See "[About enterprise accounts for Copilot Business](https://docs.github.com/admin/copilot-business-only/about-enterprise-accounts-for-copilot-business)."
1772+
17701773
Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions.
17711774

17721775
The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,
@@ -1843,7 +1846,7 @@ paths:
18431846
summary: Get a summary of Copilot usage for an enterprise team
18441847
description: |-
18451848
> [!NOTE]
1846-
> This endpoint is in public preview and is subject to change.
1849+
> This endpoint is in public preview and is subject to change. This endpoint is only applicable to dedicated enterprise accounts for Copilot Business. See "[About enterprise accounts for Copilot Business](https://docs.github.com/admin/copilot-business-only/about-enterprise-accounts-for-copilot-business)."
18471850

18481851
You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE
18491852
for users within an enterprise team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.
@@ -8496,13 +8499,11 @@ paths:
84968499
Purchases a GitHub Copilot seat for all users within each specified team.
84978500
The organization will be billed for each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."
84988501

8499-
Only organization owners can add Copilot seats for their organization members.
8500-
8501-
In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.
8502+
Only organization owners can purchase Copilot seats for their organization members. The organization must have a Copilot Business or Copilot Enterprise subscription and a configured suggestion matching policy.
85028503
For more information about setting up a Copilot subscription, see "[Subscribing to Copilot for your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/subscribing-to-copilot-for-your-organization)."
85038504
For more information about setting a suggestion matching policy, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#policies-for-suggestion-matching)."
85048505

8505-
The response will contain the total number of new seats that were created and existing seats that were refreshed.
8506+
The response contains the total number of new seats that were created and existing seats that were refreshed.
85068507

85078508
OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint.
85088509
tags:
@@ -8580,14 +8581,11 @@ paths:
85808581

85818582
Sets seats for all members of each team specified to "pending cancellation".
85828583
This will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through another team.
8583-
8584-
For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."
8585-
8586-
For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)."
8584+
For more information about disabling access to Copilot, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)."
85878585

85888586
Only organization owners can cancel Copilot seats for their organization members.
85898587

8590-
The response will contain the total number of seats set to "pending cancellation".
8588+
The response contains the total number of seats set to "pending cancellation".
85918589

85928590
OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint.
85938591
tags:
@@ -8667,13 +8665,11 @@ paths:
86678665
Purchases a GitHub Copilot seat for each user specified.
86688666
The organization will be billed for each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."
86698667

8670-
Only organization owners can add Copilot seats for their organization members.
8671-
8672-
In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.
8668+
Only organization owners can purchase Copilot seats for their organization members. The organization must have a Copilot Business or Copilot Enterprise subscription and a configured suggestion matching policy.
86738669
For more information about setting up a Copilot subscription, see "[Subscribing to Copilot for your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/subscribing-to-copilot-for-your-organization)."
86748670
For more information about setting a suggestion matching policy, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#policies-for-suggestion-matching)."
86758671

8676-
The response will contain the total number of new seats that were created and existing seats that were refreshed.
8672+
The response contains the total number of new seats that were created and existing seats that were refreshed.
86778673

86788674
OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint.
86798675
tags:
@@ -8750,14 +8746,11 @@ paths:
87508746

87518747
Sets seats for all users specified to "pending cancellation".
87528748
This will cause the specified users to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through team membership.
8753-
8754-
For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."
8755-
8756-
For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)."
8749+
For more information about disabling access to Copilot, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)."
87578750

87588751
Only organization owners can cancel Copilot seats for their organization members.
87598752

8760-
The response will contain the total number of seats set to "pending cancellation".
8753+
The response contains the total number of seats set to "pending cancellation".
87618754

87628755
OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint.
87638756
tags:
@@ -10059,6 +10052,7 @@ paths:
1005910052
- "$ref": "#/components/parameters/per-page"
1006010053
- "$ref": "#/components/parameters/direction"
1006110054
- "$ref": "#/components/parameters/api-insights-route-stats-sort"
10055+
- "$ref": "#/components/parameters/api-insights-api-route-substring"
1006210056
responses:
1006310057
'200':
1006410058
description: Response
@@ -10092,6 +10086,7 @@ paths:
1009210086
- "$ref": "#/components/parameters/per-page"
1009310087
- "$ref": "#/components/parameters/direction"
1009410088
- "$ref": "#/components/parameters/api-insights-sort"
10089+
- "$ref": "#/components/parameters/api-insights-subject-name-substring"
1009510090
responses:
1009610091
'200':
1009710092
description: Response
@@ -10310,6 +10305,7 @@ paths:
1031010305
- "$ref": "#/components/parameters/per-page"
1031110306
- "$ref": "#/components/parameters/direction"
1031210307
- "$ref": "#/components/parameters/api-insights-sort"
10308+
- "$ref": "#/components/parameters/api-insights-actor-name-substring"
1031310309
responses:
1031410310
'200':
1031510311
description: Response
@@ -89634,18 +89630,20 @@ components:
8963489630
description: The type of scan
8963589631
status:
8963689632
type: string
89637-
description: The state of the scan. Either "completed" or "running"
89633+
description: The state of the scan. Either "completed", "running", or "pending"
8963889634
completed_at:
8963989635
type:
8964089636
- string
8964189637
- 'null'
8964289638
format: date-time
8964389639
description: The time that the scan was completed. Empty if the scan is
89644-
active
89640+
running
8964589641
started_at:
89646-
type: string
89642+
type:
89643+
- string
89644+
- 'null'
8964789645
format: date-time
89648-
description: The time that the scan was started
89646+
description: The time that the scan was started. Empty if the scan is pending
8964989647
secret-scanning-scan-history:
8965089648
type: object
8965189649
properties:
@@ -226944,6 +226942,14 @@ components:
226944226942
- api_route
226945226943
- total_request_count
226946226944
default: total_request_count
226945+
api-insights-api-route-substring:
226946+
name: api_route_substring
226947+
in: query
226948+
description: Providing a substring will filter results where the API route contains
226949+
the substring. This is a case-insensitive search.
226950+
required: false
226951+
schema:
226952+
type: string
226947226953
api-insights-sort:
226948226954
name: sort
226949226955
description: The property to sort the results by.
@@ -226960,6 +226966,14 @@ components:
226960226966
- subject_name
226961226967
- total_request_count
226962226968
default: total_request_count
226969+
api-insights-subject-name-substring:
226970+
name: subject_name_substring
226971+
in: query
226972+
description: Providing a substring will filter results where the subject name
226973+
contains the substring. This is a case-insensitive search.
226974+
required: false
226975+
schema:
226976+
type: string
226963226977
api-insights-user-id:
226964226978
name: user_id
226965226979
in: path
@@ -226975,6 +226989,14 @@ components:
226975226989
required: true
226976226990
schema:
226977226991
type: string
226992+
api-insights-actor-name-substring:
226993+
name: actor_name_substring
226994+
in: query
226995+
description: Providing a substring will filter results where the actor name
226996+
contains the substring. This is a case-insensitive search.
226997+
required: false
226998+
schema:
226999+
type: string
226978227000
invitation-id:
226979227001
name: invitation_id
226980227002
description: The unique identifier of the invitation.

0 commit comments

Comments
 (0)