diff --git a/descriptions/api.github.com/api.github.com.2022-11-28.json b/descriptions/api.github.com/api.github.com.2022-11-28.json index 03ca71d2a0..c1cdc29e90 100644 --- a/descriptions/api.github.com/api.github.com.2022-11-28.json +++ b/descriptions/api.github.com/api.github.com.2022-11-28.json @@ -2050,7 +2050,7 @@ "/credentials/revoke": { "post": { "summary": "Revoke a list of credentials", - "description": "Submit a list of credentials to be revoked. This endpoint is intended to revoke credentials the caller does not own and may have found exposed on GitHub.com or elsewhere. It can also be used for credentials associated with an old user account that you no longer have access to. Credential owners will be notified of the revocation.\n\nThis endpoint currently accepts the following credential types:\n- Personal access tokens (classic)\n- Fine-grained personal access tokens\n\nRevoked credentials may impact users on GitHub Free, Pro, & Team and GitHub Enterprise Cloud, and GitHub Enterprise Cloud with Enterprise Managed Users.\nGitHub cannot reactivate any credentials that have been revoked; new credentials will need to be generated.\n\nTo prevent abuse, this API is limited to only 60 unauthenticated requests per hour and a max of 1000 tokens per API request.\n\n> [!NOTE]\n> Any authenticated requests will return a 403.", + "description": "Submit a list of credentials to be revoked. This endpoint is intended to revoke credentials the caller does not own and may have found exposed on GitHub.com or elsewhere. It can also be used for credentials associated with an old user account that you no longer have access to. Credential owners will be notified of the revocation.\n\nThis endpoint currently accepts the following credential types:\n- Personal access tokens (classic) (`ghp_`)\n- Fine-grained personal access tokens (`github_pat_`)\n- OAuth app access tokens (`gho_`)\n- User-to-server tokens from GitHub Apps (`ghu_`)\n- Refresh tokens from GitHub Apps (`ghr_`)\n\n\nRevoked credentials may impact users on GitHub Free, Pro, & Team and GitHub Enterprise Cloud, and GitHub Enterprise Cloud with Enterprise Managed Users.\nGitHub cannot reactivate any credentials that have been revoked; new credentials will need to be generated.\n\nTo prevent abuse, this API is limited to only 60 unauthenticated requests per hour and a max of 1000 tokens per API request.\n\n> [!NOTE]\n> Any authenticated requests will return a 403.", "tags": [ "credentials" ], @@ -2085,7 +2085,10 @@ "value": { "credentials": [ "ghp_1234567890abcdef1234567890abcdef12345678", - "ghp_abcdef1234567890abcdef1234567890abcdef12" + "github_pat_0A1B2C3D4E5F6G7H8I9J0K_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456", + "gho_1234567890abcdef1234567890abcdef12345678", + "ghu_1234567890abcdef1234567890abcdef12345678", + "ghr_1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab" ] } } @@ -19568,6 +19571,9 @@ } } }, + "204": { + "$ref": "#/components/responses/no_content" + }, "500": { "$ref": "#/components/responses/internal_error" }, @@ -19673,6 +19679,9 @@ } } }, + "204": { + "$ref": "#/components/responses/no_content" + }, "500": { "$ref": "#/components/responses/internal_error" }, diff --git a/descriptions/api.github.com/api.github.com.2022-11-28.yaml b/descriptions/api.github.com/api.github.com.2022-11-28.yaml index 2c134e817a..6326a65cf8 100644 --- a/descriptions/api.github.com/api.github.com.2022-11-28.yaml +++ b/descriptions/api.github.com/api.github.com.2022-11-28.yaml @@ -1415,8 +1415,12 @@ paths: Submit a list of credentials to be revoked. This endpoint is intended to revoke credentials the caller does not own and may have found exposed on GitHub.com or elsewhere. It can also be used for credentials associated with an old user account that you no longer have access to. Credential owners will be notified of the revocation. This endpoint currently accepts the following credential types: - - Personal access tokens (classic) - - Fine-grained personal access tokens + - Personal access tokens (classic) (`ghp_`) + - Fine-grained personal access tokens (`github_pat_`) + - OAuth app access tokens (`gho_`) + - User-to-server tokens from GitHub Apps (`ghu_`) + - Refresh tokens from GitHub Apps (`ghr_`) + Revoked credentials may impact users on GitHub Free, Pro, & Team and GitHub Enterprise Cloud, and GitHub Enterprise Cloud with Enterprise Managed Users. GitHub cannot reactivate any credentials that have been revoked; new credentials will need to be generated. @@ -1453,7 +1457,10 @@ paths: value: credentials: - ghp_1234567890abcdef1234567890abcdef12345678 - - ghp_abcdef1234567890abcdef1234567890abcdef12 + - github_pat_0A1B2C3D4E5F6G7H8I9J0K_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456 + - gho_1234567890abcdef1234567890abcdef12345678 + - ghu_1234567890abcdef1234567890abcdef12345678 + - ghr_1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab responses: '202': "$ref": "#/components/responses/accepted" @@ -14324,6 +14331,8 @@ paths: examples: default: "$ref": "#/components/examples/copilot-usage-metrics-1-day-report" + '204': + "$ref": "#/components/responses/no_content" '500': "$ref": "#/components/responses/internal_error" '403': @@ -14409,6 +14418,8 @@ paths: examples: default: "$ref": "#/components/examples/copilot-usage-metrics-1-day-report" + '204': + "$ref": "#/components/responses/no_content" '500': "$ref": "#/components/responses/internal_error" '403': diff --git a/descriptions/api.github.com/api.github.com.2026-03-10.json b/descriptions/api.github.com/api.github.com.2026-03-10.json index 59b87edaa0..d71499d1b4 100644 --- a/descriptions/api.github.com/api.github.com.2026-03-10.json +++ b/descriptions/api.github.com/api.github.com.2026-03-10.json @@ -2050,7 +2050,7 @@ "/credentials/revoke": { "post": { "summary": "Revoke a list of credentials", - "description": "Submit a list of credentials to be revoked. This endpoint is intended to revoke credentials the caller does not own and may have found exposed on GitHub.com or elsewhere. It can also be used for credentials associated with an old user account that you no longer have access to. Credential owners will be notified of the revocation.\n\nThis endpoint currently accepts the following credential types:\n- Personal access tokens (classic)\n- Fine-grained personal access tokens\n\nRevoked credentials may impact users on GitHub Free, Pro, & Team and GitHub Enterprise Cloud, and GitHub Enterprise Cloud with Enterprise Managed Users.\nGitHub cannot reactivate any credentials that have been revoked; new credentials will need to be generated.\n\nTo prevent abuse, this API is limited to only 60 unauthenticated requests per hour and a max of 1000 tokens per API request.\n\n> [!NOTE]\n> Any authenticated requests will return a 403.", + "description": "Submit a list of credentials to be revoked. This endpoint is intended to revoke credentials the caller does not own and may have found exposed on GitHub.com or elsewhere. It can also be used for credentials associated with an old user account that you no longer have access to. Credential owners will be notified of the revocation.\n\nThis endpoint currently accepts the following credential types:\n- Personal access tokens (classic) (`ghp_`)\n- Fine-grained personal access tokens (`github_pat_`)\n- OAuth app access tokens (`gho_`)\n- User-to-server tokens from GitHub Apps (`ghu_`)\n- Refresh tokens from GitHub Apps (`ghr_`)\n\n\nRevoked credentials may impact users on GitHub Free, Pro, & Team and GitHub Enterprise Cloud, and GitHub Enterprise Cloud with Enterprise Managed Users.\nGitHub cannot reactivate any credentials that have been revoked; new credentials will need to be generated.\n\nTo prevent abuse, this API is limited to only 60 unauthenticated requests per hour and a max of 1000 tokens per API request.\n\n> [!NOTE]\n> Any authenticated requests will return a 403.", "tags": [ "credentials" ], @@ -2085,7 +2085,10 @@ "value": { "credentials": [ "ghp_1234567890abcdef1234567890abcdef12345678", - "ghp_abcdef1234567890abcdef1234567890abcdef12" + "github_pat_0A1B2C3D4E5F6G7H8I9J0K_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456", + "gho_1234567890abcdef1234567890abcdef12345678", + "ghu_1234567890abcdef1234567890abcdef12345678", + "ghr_1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab" ] } } @@ -19528,6 +19531,9 @@ } } }, + "204": { + "$ref": "#/components/responses/no_content" + }, "500": { "$ref": "#/components/responses/internal_error" }, @@ -19633,6 +19639,9 @@ } } }, + "204": { + "$ref": "#/components/responses/no_content" + }, "500": { "$ref": "#/components/responses/internal_error" }, diff --git a/descriptions/api.github.com/api.github.com.2026-03-10.yaml b/descriptions/api.github.com/api.github.com.2026-03-10.yaml index 1fab6fad4f..4b00bbdda8 100644 --- a/descriptions/api.github.com/api.github.com.2026-03-10.yaml +++ b/descriptions/api.github.com/api.github.com.2026-03-10.yaml @@ -1415,8 +1415,12 @@ paths: Submit a list of credentials to be revoked. This endpoint is intended to revoke credentials the caller does not own and may have found exposed on GitHub.com or elsewhere. It can also be used for credentials associated with an old user account that you no longer have access to. Credential owners will be notified of the revocation. This endpoint currently accepts the following credential types: - - Personal access tokens (classic) - - Fine-grained personal access tokens + - Personal access tokens (classic) (`ghp_`) + - Fine-grained personal access tokens (`github_pat_`) + - OAuth app access tokens (`gho_`) + - User-to-server tokens from GitHub Apps (`ghu_`) + - Refresh tokens from GitHub Apps (`ghr_`) + Revoked credentials may impact users on GitHub Free, Pro, & Team and GitHub Enterprise Cloud, and GitHub Enterprise Cloud with Enterprise Managed Users. GitHub cannot reactivate any credentials that have been revoked; new credentials will need to be generated. @@ -1453,7 +1457,10 @@ paths: value: credentials: - ghp_1234567890abcdef1234567890abcdef12345678 - - ghp_abcdef1234567890abcdef1234567890abcdef12 + - github_pat_0A1B2C3D4E5F6G7H8I9J0K_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456 + - gho_1234567890abcdef1234567890abcdef12345678 + - ghu_1234567890abcdef1234567890abcdef12345678 + - ghr_1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab responses: '202': "$ref": "#/components/responses/accepted" @@ -14291,6 +14298,8 @@ paths: examples: default: "$ref": "#/components/examples/copilot-usage-metrics-1-day-report" + '204': + "$ref": "#/components/responses/no_content" '500': "$ref": "#/components/responses/internal_error" '403': @@ -14376,6 +14385,8 @@ paths: examples: default: "$ref": "#/components/examples/copilot-usage-metrics-1-day-report" + '204': + "$ref": "#/components/responses/no_content" '500': "$ref": "#/components/responses/internal_error" '403': diff --git a/descriptions/api.github.com/api.github.com.json b/descriptions/api.github.com/api.github.com.json index 6603925639..06fe15d20a 100644 --- a/descriptions/api.github.com/api.github.com.json +++ b/descriptions/api.github.com/api.github.com.json @@ -2064,7 +2064,7 @@ "/credentials/revoke": { "post": { "summary": "Revoke a list of credentials", - "description": "Submit a list of credentials to be revoked. This endpoint is intended to revoke credentials the caller does not own and may have found exposed on GitHub.com or elsewhere. It can also be used for credentials associated with an old user account that you no longer have access to. Credential owners will be notified of the revocation.\n\nThis endpoint currently accepts the following credential types:\n- Personal access tokens (classic)\n- Fine-grained personal access tokens\n\nRevoked credentials may impact users on GitHub Free, Pro, & Team and GitHub Enterprise Cloud, and GitHub Enterprise Cloud with Enterprise Managed Users.\nGitHub cannot reactivate any credentials that have been revoked; new credentials will need to be generated.\n\nTo prevent abuse, this API is limited to only 60 unauthenticated requests per hour and a max of 1000 tokens per API request.\n\n> [!NOTE]\n> Any authenticated requests will return a 403.", + "description": "Submit a list of credentials to be revoked. This endpoint is intended to revoke credentials the caller does not own and may have found exposed on GitHub.com or elsewhere. It can also be used for credentials associated with an old user account that you no longer have access to. Credential owners will be notified of the revocation.\n\nThis endpoint currently accepts the following credential types:\n- Personal access tokens (classic) (`ghp_`)\n- Fine-grained personal access tokens (`github_pat_`)\n- OAuth app access tokens (`gho_`)\n- User-to-server tokens from GitHub Apps (`ghu_`)\n- Refresh tokens from GitHub Apps (`ghr_`)\n\n\nRevoked credentials may impact users on GitHub Free, Pro, & Team and GitHub Enterprise Cloud, and GitHub Enterprise Cloud with Enterprise Managed Users.\nGitHub cannot reactivate any credentials that have been revoked; new credentials will need to be generated.\n\nTo prevent abuse, this API is limited to only 60 unauthenticated requests per hour and a max of 1000 tokens per API request.\n\n> [!NOTE]\n> Any authenticated requests will return a 403.", "tags": [ "credentials" ], @@ -2099,7 +2099,10 @@ "value": { "credentials": [ "ghp_1234567890abcdef1234567890abcdef12345678", - "ghp_abcdef1234567890abcdef1234567890abcdef12" + "github_pat_0A1B2C3D4E5F6G7H8I9J0K_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456", + "gho_1234567890abcdef1234567890abcdef12345678", + "ghu_1234567890abcdef1234567890abcdef12345678", + "ghr_1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab" ] } } @@ -19670,6 +19673,9 @@ } } }, + "204": { + "$ref": "#/components/responses/no_content" + }, "500": { "$ref": "#/components/responses/internal_error" }, @@ -19775,6 +19781,9 @@ } } }, + "204": { + "$ref": "#/components/responses/no_content" + }, "500": { "$ref": "#/components/responses/internal_error" }, diff --git a/descriptions/api.github.com/api.github.com.yaml b/descriptions/api.github.com/api.github.com.yaml index 3746d82fe7..3adb3fe7d5 100644 --- a/descriptions/api.github.com/api.github.com.yaml +++ b/descriptions/api.github.com/api.github.com.yaml @@ -1423,8 +1423,12 @@ paths: Submit a list of credentials to be revoked. This endpoint is intended to revoke credentials the caller does not own and may have found exposed on GitHub.com or elsewhere. It can also be used for credentials associated with an old user account that you no longer have access to. Credential owners will be notified of the revocation. This endpoint currently accepts the following credential types: - - Personal access tokens (classic) - - Fine-grained personal access tokens + - Personal access tokens (classic) (`ghp_`) + - Fine-grained personal access tokens (`github_pat_`) + - OAuth app access tokens (`gho_`) + - User-to-server tokens from GitHub Apps (`ghu_`) + - Refresh tokens from GitHub Apps (`ghr_`) + Revoked credentials may impact users on GitHub Free, Pro, & Team and GitHub Enterprise Cloud, and GitHub Enterprise Cloud with Enterprise Managed Users. GitHub cannot reactivate any credentials that have been revoked; new credentials will need to be generated. @@ -1461,7 +1465,10 @@ paths: value: credentials: - ghp_1234567890abcdef1234567890abcdef12345678 - - ghp_abcdef1234567890abcdef1234567890abcdef12 + - github_pat_0A1B2C3D4E5F6G7H8I9J0K_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456 + - gho_1234567890abcdef1234567890abcdef12345678 + - ghu_1234567890abcdef1234567890abcdef12345678 + - ghr_1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab responses: '202': "$ref": "#/components/responses/accepted" @@ -14378,6 +14385,8 @@ paths: examples: default: "$ref": "#/components/examples/copilot-usage-metrics-1-day-report" + '204': + "$ref": "#/components/responses/no_content" '500': "$ref": "#/components/responses/internal_error" '403': @@ -14463,6 +14472,8 @@ paths: examples: default: "$ref": "#/components/examples/copilot-usage-metrics-1-day-report" + '204': + "$ref": "#/components/responses/no_content" '500': "$ref": "#/components/responses/internal_error" '403': diff --git a/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json b/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json index 42b2159f6a..78791eac2f 100644 --- a/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json +++ b/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json @@ -14648,7 +14648,7 @@ "/credentials/revoke": { "post": { "summary": "Revoke a list of credentials", - "description": "Submit a list of credentials to be revoked. This endpoint is intended to revoke credentials the caller does not own and may have found exposed on GitHub.com or elsewhere. It can also be used for credentials associated with an old user account that you no longer have access to. Credential owners will be notified of the revocation.\n\nThis endpoint currently accepts the following credential types:\n- Personal access tokens (classic)\n- Fine-grained personal access tokens\n\nRevoked credentials may impact users on GitHub Free, Pro, & Team and GitHub Enterprise Cloud, and GitHub Enterprise Cloud with Enterprise Managed Users.\nGitHub cannot reactivate any credentials that have been revoked; new credentials will need to be generated.\n\nTo prevent abuse, this API is limited to only 60 unauthenticated requests per hour and a max of 1000 tokens per API request.\n\n> [!NOTE]\n> Any authenticated requests will return a 403.", + "description": "Submit a list of credentials to be revoked. This endpoint is intended to revoke credentials the caller does not own and may have found exposed on GitHub.com or elsewhere. It can also be used for credentials associated with an old user account that you no longer have access to. Credential owners will be notified of the revocation.\n\nThis endpoint currently accepts the following credential types:\n- Personal access tokens (classic) (`ghp_`)\n- Fine-grained personal access tokens (`github_pat_`)\n- OAuth app access tokens (`gho_`)\n- User-to-server tokens from GitHub Apps (`ghu_`)\n- Refresh tokens from GitHub Apps (`ghr_`)\n\n\nRevoked credentials may impact users on GitHub Free, Pro, & Team and GitHub Enterprise Cloud, and GitHub Enterprise Cloud with Enterprise Managed Users.\nGitHub cannot reactivate any credentials that have been revoked; new credentials will need to be generated.\n\nTo prevent abuse, this API is limited to only 60 unauthenticated requests per hour and a max of 1000 tokens per API request.\n\n> [!NOTE]\n> Any authenticated requests will return a 403.", "tags": [ "credentials" ], @@ -14683,7 +14683,10 @@ "value": { "credentials": [ "ghp_1234567890abcdef1234567890abcdef12345678", - "ghp_abcdef1234567890abcdef1234567890abcdef12" + "github_pat_0A1B2C3D4E5F6G7H8I9J0K_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456", + "gho_1234567890abcdef1234567890abcdef12345678", + "ghu_1234567890abcdef1234567890abcdef12345678", + "ghr_1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab" ] } } @@ -112940,6 +112943,9 @@ } } }, + "204": { + "description": "A header with no content is returned." + }, "500": { "description": "Internal Error", "content": { @@ -113264,6 +113270,9 @@ } } }, + "204": { + "description": "A header with no content is returned." + }, "500": { "description": "Internal Error", "content": { diff --git a/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml b/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml index 56ae18c02b..f0c7cc11d1 100644 --- a/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml +++ b/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml @@ -5101,8 +5101,12 @@ paths: Submit a list of credentials to be revoked. This endpoint is intended to revoke credentials the caller does not own and may have found exposed on GitHub.com or elsewhere. It can also be used for credentials associated with an old user account that you no longer have access to. Credential owners will be notified of the revocation. This endpoint currently accepts the following credential types: - - Personal access tokens (classic) - - Fine-grained personal access tokens + - Personal access tokens (classic) (`ghp_`) + - Fine-grained personal access tokens (`github_pat_`) + - OAuth app access tokens (`gho_`) + - User-to-server tokens from GitHub Apps (`ghu_`) + - Refresh tokens from GitHub Apps (`ghr_`) + Revoked credentials may impact users on GitHub Free, Pro, & Team and GitHub Enterprise Cloud, and GitHub Enterprise Cloud with Enterprise Managed Users. GitHub cannot reactivate any credentials that have been revoked; new credentials will need to be generated. @@ -5139,7 +5143,10 @@ paths: value: credentials: - ghp_1234567890abcdef1234567890abcdef12345678 - - ghp_abcdef1234567890abcdef1234567890abcdef12 + - github_pat_0A1B2C3D4E5F6G7H8I9J0K_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456 + - gho_1234567890abcdef1234567890abcdef12345678 + - ghu_1234567890abcdef1234567890abcdef12345678 + - ghr_1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab responses: '202': *39 '422': *7 @@ -31480,6 +31487,7 @@ paths: schema: *57 examples: default: *58 + '204': *192 '500': *55 '403': *29 '404': *6 @@ -31555,6 +31563,7 @@ paths: schema: *57 examples: default: *58 + '204': *192 '500': *55 '403': *29 '404': *6 diff --git a/descriptions/api.github.com/dereferenced/api.github.com.2026-03-10.deref.json b/descriptions/api.github.com/dereferenced/api.github.com.2026-03-10.deref.json index c0a925f210..5b3b8c5711 100644 --- a/descriptions/api.github.com/dereferenced/api.github.com.2026-03-10.deref.json +++ b/descriptions/api.github.com/dereferenced/api.github.com.2026-03-10.deref.json @@ -14571,7 +14571,7 @@ "/credentials/revoke": { "post": { "summary": "Revoke a list of credentials", - "description": "Submit a list of credentials to be revoked. This endpoint is intended to revoke credentials the caller does not own and may have found exposed on GitHub.com or elsewhere. It can also be used for credentials associated with an old user account that you no longer have access to. Credential owners will be notified of the revocation.\n\nThis endpoint currently accepts the following credential types:\n- Personal access tokens (classic)\n- Fine-grained personal access tokens\n\nRevoked credentials may impact users on GitHub Free, Pro, & Team and GitHub Enterprise Cloud, and GitHub Enterprise Cloud with Enterprise Managed Users.\nGitHub cannot reactivate any credentials that have been revoked; new credentials will need to be generated.\n\nTo prevent abuse, this API is limited to only 60 unauthenticated requests per hour and a max of 1000 tokens per API request.\n\n> [!NOTE]\n> Any authenticated requests will return a 403.", + "description": "Submit a list of credentials to be revoked. This endpoint is intended to revoke credentials the caller does not own and may have found exposed on GitHub.com or elsewhere. It can also be used for credentials associated with an old user account that you no longer have access to. Credential owners will be notified of the revocation.\n\nThis endpoint currently accepts the following credential types:\n- Personal access tokens (classic) (`ghp_`)\n- Fine-grained personal access tokens (`github_pat_`)\n- OAuth app access tokens (`gho_`)\n- User-to-server tokens from GitHub Apps (`ghu_`)\n- Refresh tokens from GitHub Apps (`ghr_`)\n\n\nRevoked credentials may impact users on GitHub Free, Pro, & Team and GitHub Enterprise Cloud, and GitHub Enterprise Cloud with Enterprise Managed Users.\nGitHub cannot reactivate any credentials that have been revoked; new credentials will need to be generated.\n\nTo prevent abuse, this API is limited to only 60 unauthenticated requests per hour and a max of 1000 tokens per API request.\n\n> [!NOTE]\n> Any authenticated requests will return a 403.", "tags": [ "credentials" ], @@ -14606,7 +14606,10 @@ "value": { "credentials": [ "ghp_1234567890abcdef1234567890abcdef12345678", - "ghp_abcdef1234567890abcdef1234567890abcdef12" + "github_pat_0A1B2C3D4E5F6G7H8I9J0K_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456", + "gho_1234567890abcdef1234567890abcdef12345678", + "ghu_1234567890abcdef1234567890abcdef12345678", + "ghr_1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab" ] } } @@ -109511,6 +109514,9 @@ } } }, + "204": { + "description": "A header with no content is returned." + }, "500": { "description": "Internal Error", "content": { @@ -109835,6 +109841,9 @@ } } }, + "204": { + "description": "A header with no content is returned." + }, "500": { "description": "Internal Error", "content": { diff --git a/descriptions/api.github.com/dereferenced/api.github.com.2026-03-10.deref.yaml b/descriptions/api.github.com/dereferenced/api.github.com.2026-03-10.deref.yaml index 0f9c97759e..dcbe5e90f9 100644 --- a/descriptions/api.github.com/dereferenced/api.github.com.2026-03-10.deref.yaml +++ b/descriptions/api.github.com/dereferenced/api.github.com.2026-03-10.deref.yaml @@ -5056,8 +5056,12 @@ paths: Submit a list of credentials to be revoked. This endpoint is intended to revoke credentials the caller does not own and may have found exposed on GitHub.com or elsewhere. It can also be used for credentials associated with an old user account that you no longer have access to. Credential owners will be notified of the revocation. This endpoint currently accepts the following credential types: - - Personal access tokens (classic) - - Fine-grained personal access tokens + - Personal access tokens (classic) (`ghp_`) + - Fine-grained personal access tokens (`github_pat_`) + - OAuth app access tokens (`gho_`) + - User-to-server tokens from GitHub Apps (`ghu_`) + - Refresh tokens from GitHub Apps (`ghr_`) + Revoked credentials may impact users on GitHub Free, Pro, & Team and GitHub Enterprise Cloud, and GitHub Enterprise Cloud with Enterprise Managed Users. GitHub cannot reactivate any credentials that have been revoked; new credentials will need to be generated. @@ -5094,7 +5098,10 @@ paths: value: credentials: - ghp_1234567890abcdef1234567890abcdef12345678 - - ghp_abcdef1234567890abcdef1234567890abcdef12 + - github_pat_0A1B2C3D4E5F6G7H8I9J0K_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456 + - gho_1234567890abcdef1234567890abcdef12345678 + - ghu_1234567890abcdef1234567890abcdef12345678 + - ghr_1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab responses: '202': *39 '422': *7 @@ -31138,6 +31145,7 @@ paths: schema: *57 examples: default: *58 + '204': *192 '500': *55 '403': *29 '404': *6 @@ -31213,6 +31221,7 @@ paths: schema: *57 examples: default: *58 + '204': *192 '500': *55 '403': *29 '404': *6 diff --git a/descriptions/api.github.com/dereferenced/api.github.com.deref.json b/descriptions/api.github.com/dereferenced/api.github.com.deref.json index 55ae374984..91f7ec8341 100644 --- a/descriptions/api.github.com/dereferenced/api.github.com.deref.json +++ b/descriptions/api.github.com/dereferenced/api.github.com.deref.json @@ -14877,7 +14877,7 @@ "/credentials/revoke": { "post": { "summary": "Revoke a list of credentials", - "description": "Submit a list of credentials to be revoked. This endpoint is intended to revoke credentials the caller does not own and may have found exposed on GitHub.com or elsewhere. It can also be used for credentials associated with an old user account that you no longer have access to. Credential owners will be notified of the revocation.\n\nThis endpoint currently accepts the following credential types:\n- Personal access tokens (classic)\n- Fine-grained personal access tokens\n\nRevoked credentials may impact users on GitHub Free, Pro, & Team and GitHub Enterprise Cloud, and GitHub Enterprise Cloud with Enterprise Managed Users.\nGitHub cannot reactivate any credentials that have been revoked; new credentials will need to be generated.\n\nTo prevent abuse, this API is limited to only 60 unauthenticated requests per hour and a max of 1000 tokens per API request.\n\n> [!NOTE]\n> Any authenticated requests will return a 403.", + "description": "Submit a list of credentials to be revoked. This endpoint is intended to revoke credentials the caller does not own and may have found exposed on GitHub.com or elsewhere. It can also be used for credentials associated with an old user account that you no longer have access to. Credential owners will be notified of the revocation.\n\nThis endpoint currently accepts the following credential types:\n- Personal access tokens (classic) (`ghp_`)\n- Fine-grained personal access tokens (`github_pat_`)\n- OAuth app access tokens (`gho_`)\n- User-to-server tokens from GitHub Apps (`ghu_`)\n- Refresh tokens from GitHub Apps (`ghr_`)\n\n\nRevoked credentials may impact users on GitHub Free, Pro, & Team and GitHub Enterprise Cloud, and GitHub Enterprise Cloud with Enterprise Managed Users.\nGitHub cannot reactivate any credentials that have been revoked; new credentials will need to be generated.\n\nTo prevent abuse, this API is limited to only 60 unauthenticated requests per hour and a max of 1000 tokens per API request.\n\n> [!NOTE]\n> Any authenticated requests will return a 403.", "tags": [ "credentials" ], @@ -14912,7 +14912,10 @@ "value": { "credentials": [ "ghp_1234567890abcdef1234567890abcdef12345678", - "ghp_abcdef1234567890abcdef1234567890abcdef12" + "github_pat_0A1B2C3D4E5F6G7H8I9J0K_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456", + "gho_1234567890abcdef1234567890abcdef12345678", + "ghu_1234567890abcdef1234567890abcdef12345678", + "ghr_1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab" ] } } @@ -115062,6 +115065,9 @@ } } }, + "204": { + "description": "A header with no content is returned." + }, "500": { "description": "Internal Error", "content": { @@ -115386,6 +115392,9 @@ } } }, + "204": { + "description": "A header with no content is returned." + }, "500": { "description": "Internal Error", "content": { diff --git a/descriptions/api.github.com/dereferenced/api.github.com.deref.yaml b/descriptions/api.github.com/dereferenced/api.github.com.deref.yaml index a85946f4ab..884098d49f 100644 --- a/descriptions/api.github.com/dereferenced/api.github.com.deref.yaml +++ b/descriptions/api.github.com/dereferenced/api.github.com.deref.yaml @@ -5249,8 +5249,12 @@ paths: Submit a list of credentials to be revoked. This endpoint is intended to revoke credentials the caller does not own and may have found exposed on GitHub.com or elsewhere. It can also be used for credentials associated with an old user account that you no longer have access to. Credential owners will be notified of the revocation. This endpoint currently accepts the following credential types: - - Personal access tokens (classic) - - Fine-grained personal access tokens + - Personal access tokens (classic) (`ghp_`) + - Fine-grained personal access tokens (`github_pat_`) + - OAuth app access tokens (`gho_`) + - User-to-server tokens from GitHub Apps (`ghu_`) + - Refresh tokens from GitHub Apps (`ghr_`) + Revoked credentials may impact users on GitHub Free, Pro, & Team and GitHub Enterprise Cloud, and GitHub Enterprise Cloud with Enterprise Managed Users. GitHub cannot reactivate any credentials that have been revoked; new credentials will need to be generated. @@ -5287,7 +5291,10 @@ paths: value: credentials: - ghp_1234567890abcdef1234567890abcdef12345678 - - ghp_abcdef1234567890abcdef1234567890abcdef12 + - github_pat_0A1B2C3D4E5F6G7H8I9J0K_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456 + - gho_1234567890abcdef1234567890abcdef12345678 + - ghu_1234567890abcdef1234567890abcdef12345678 + - ghr_1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab responses: '202': *39 '422': *7 @@ -31790,6 +31797,7 @@ paths: schema: *57 examples: default: *58 + '204': *192 '500': *55 '403': *29 '404': *6 @@ -31865,6 +31873,7 @@ paths: schema: *57 examples: default: *58 + '204': *192 '500': *55 '403': *29 '404': *6 diff --git a/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.json b/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.json index fa9cf8b0e4..1be6e42f5f 100644 --- a/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.json +++ b/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.json @@ -14792,7 +14792,7 @@ "/credentials/revoke": { "post": { "summary": "Revoke a list of credentials", - "description": "Submit a list of credentials to be revoked. This endpoint is intended to revoke credentials the caller does not own and may have found exposed on GitHub.com or elsewhere. It can also be used for credentials associated with an old user account that you no longer have access to. Credential owners will be notified of the revocation.\n\nThis endpoint currently accepts the following credential types:\n- Personal access tokens (classic)\n- Fine-grained personal access tokens\n\nRevoked credentials may impact users on GitHub Free, Pro, & Team and GitHub Enterprise Cloud, and GitHub Enterprise Cloud with Enterprise Managed Users.\nGitHub cannot reactivate any credentials that have been revoked; new credentials will need to be generated.\n\nTo prevent abuse, this API is limited to only 60 unauthenticated requests per hour and a max of 1000 tokens per API request.\n\n> [!NOTE]\n> Any authenticated requests will return a 403.", + "description": "Submit a list of credentials to be revoked. This endpoint is intended to revoke credentials the caller does not own and may have found exposed on GitHub.com or elsewhere. It can also be used for credentials associated with an old user account that you no longer have access to. Credential owners will be notified of the revocation.\n\nThis endpoint currently accepts the following credential types:\n- Personal access tokens (classic) (`ghp_`)\n- Fine-grained personal access tokens (`github_pat_`)\n- OAuth app access tokens (`gho_`)\n- User-to-server tokens from GitHub Apps (`ghu_`)\n- Refresh tokens from GitHub Apps (`ghr_`)\n\n\nRevoked credentials may impact users on GitHub Free, Pro, & Team and GitHub Enterprise Cloud, and GitHub Enterprise Cloud with Enterprise Managed Users.\nGitHub cannot reactivate any credentials that have been revoked; new credentials will need to be generated.\n\nTo prevent abuse, this API is limited to only 60 unauthenticated requests per hour and a max of 1000 tokens per API request.\n\n> [!NOTE]\n> Any authenticated requests will return a 403.", "tags": [ "credentials" ], @@ -14827,7 +14827,10 @@ "value": { "credentials": [ "ghp_1234567890abcdef1234567890abcdef12345678", - "ghp_abcdef1234567890abcdef1234567890abcdef12" + "github_pat_0A1B2C3D4E5F6G7H8I9J0K_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456", + "gho_1234567890abcdef1234567890abcdef12345678", +{"code":"deadline_exceeded","msg":"operation timed out"}