Skip to content

Commit 883ec92

Browse files
authored
Merge pull request #5277 from github/openapi-update-9a7c6c300b875098c8db26b40f3ac9fef3b1d6548ff9b76a9b335139e2d1b08a
Update OpenAPI 3.1 Descriptions
2 parents 38adc3b + 5c0b868 commit 883ec92

16 files changed

+232
-232
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15259,7 +15259,7 @@
1525915259
"/orgs/{org}/copilot/metrics": {
1526015260
"get": {
1526115261
"summary": "Get Copilot metrics for an organization",
15262-
"description": "Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions.\n\n> [!NOTE]\n> This endpoint will only return results for a given day if the organization contained **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.\n\nThe response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,\nand the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,\nthey must have telemetry enabled in their IDE.\n\nTo access this endpoint, the Copilot Metrics API access policy must be enabled for the organization.\nOnly organization owners and owners and billing managers of the parent enterprise can view Copilot metrics.\n\nOAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint.",
15262+
"description": "Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions.\n\n> [!NOTE]\n> This endpoint will only return results for a given day if the organization contained **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.\n\nThe response contains metrics for up to 100 days prior. Metrics are processed once per day for the previous day,\nand the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,\nthey must have telemetry enabled in their IDE.\n\nTo access this endpoint, the Copilot Metrics API access policy must be enabled for the organization.\nOnly organization owners and owners and billing managers of the parent enterprise can view Copilot metrics.\n\nOAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint.",
1526315263
"tags": [
1526415264
"copilot"
1526515265
],
@@ -15274,7 +15274,7 @@
1527415274
},
1527515275
{
1527615276
"name": "since",
15277-
"description": "Show usage metrics since this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). Maximum value is 28 days ago.",
15277+
"description": "Show usage metrics since this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). Maximum value is 100 days ago.",
1527815278
"in": "query",
1527915279
"required": false,
1528015280
"schema": {
@@ -15295,11 +15295,11 @@
1529515295
},
1529615296
{
1529715297
"name": "per_page",
15298-
"description": "The number of days of metrics to display per page (max 28). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"",
15298+
"description": "The number of days of metrics to display per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"",
1529915299
"in": "query",
1530015300
"schema": {
1530115301
"type": "integer",
15302-
"default": 28
15302+
"default": 100
1530315303
}
1530415304
}
1530515305
],
@@ -23470,7 +23470,7 @@
2347023470
"/orgs/{org}/secret-scanning/pattern-configurations": {
2347123471
"get": {
2347223472
"summary": "List organization pattern configurations",
23473-
"description": "Lists the secret scanning pattern configurations for an organization.\n\nPersonal access tokens (classic) need the `write:org` scope to use this endpoint.",
23473+
"description": "Lists the secret scanning pattern configurations for an organization.\n\nPersonal access tokens (classic) need the `read:org` scope to use this endpoint.",
2347423474
"tags": [
2347523475
"secret-scanning"
2347623476
],
@@ -24385,7 +24385,7 @@
2438524385
"/orgs/{org}/team/{team_slug}/copilot/metrics": {
2438624386
"get": {
2438724387
"summary": "Get Copilot metrics for a team",
24388-
"description": "Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions.\n\n> [!NOTE]\n> This endpoint will only return results for a given day if the team had **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.\n\nThe response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,\nand the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,\nthey must have telemetry enabled in their IDE.\n\nTo access this endpoint, the Copilot Metrics API access policy must be enabled for the organization containing the team within GitHub settings.\nOnly organization owners for the organization that contains this team and owners and billing managers of the parent enterprise can view Copilot metrics for a team.\n\nOAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint.",
24388+
"description": "Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions.\n\n> [!NOTE]\n> This endpoint will only return results for a given day if the team had **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.\n\nThe response contains metrics for up to 100 days prior. Metrics are processed once per day for the previous day,\nand the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,\nthey must have telemetry enabled in their IDE.\n\nTo access this endpoint, the Copilot Metrics API access policy must be enabled for the organization containing the team within GitHub settings.\nOnly organization owners for the organization that contains this team and owners and billing managers of the parent enterprise can view Copilot metrics for a team.\n\nOAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint.",
2438924389
"tags": [
2439024390
"copilot"
2439124391
],
@@ -24403,7 +24403,7 @@
2440324403
},
2440424404
{
2440524405
"name": "since",
24406-
"description": "Show usage metrics since this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). Maximum value is 28 days ago.",
24406+
"description": "Show usage metrics since this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). Maximum value is 100 days ago.",
2440724407
"in": "query",
2440824408
"required": false,
2440924409
"schema": {
@@ -24424,11 +24424,11 @@
2442424424
},
2442524425
{
2442624426
"name": "per_page",
24427-
"description": "The number of days of metrics to display per page (max 28). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"",
24427+
"description": "The number of days of metrics to display per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"",
2442824428
"in": "query",
2442924429
"schema": {
2443024430
"type": "integer",
24431-
"default": 28
24431+
"default": 100
2443224432
}
2443324433
}
2443424434
],

0 commit comments

Comments
 (0)