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 069d080303..ba71abed70 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 @@ -6341,6 +6341,81 @@ "category": "dependabot", "subcategory": "repository-access" } + }, + "patch": { + "summary": "Updates repositories to the list of repositories that organization admins have allowed Dependabot to access when updating dependencies.", + "description": "> [!NOTE]\n> This operation supports both server-to-server and user-to-server access.\nUnauthorized users will not see the existence of this endpoint.", + "tags": [ + "dependabot" + ], + "operationId": "dependabot/update-repository-access-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies" + }, + "parameters": [ + { + "$ref": "#/components/parameters/org" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "oneOf": [ + { + "required": [ + "repository_ids_to_add" + ] + }, + { + "required": [ + "repository_ids_to_remove" + ] + } + ], + "properties": { + "repository_ids_to_add": { + "type": "array", + "items": { + "type": "integer" + } + }, + "repository_ids_to_remove": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "examples": { + "204": { + "summary": "Example with a 'succeeded' status." + } + } + } + } + }, + "responses": { + "204": { + "description": "Response" + }, + "403": { + "$ref": "#/components/responses/forbidden" + }, + "404": { + "$ref": "#/components/responses/not_found" + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "dependabot", + "subcategory": "repository-access" + } } }, "/organizations/{org}/dependabot/repository-access/default-level": { 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 7b892aa05f..d85c2d5770 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 @@ -4483,6 +4483,56 @@ paths: enabledForGitHubApps: true category: dependabot subcategory: repository-access + patch: + summary: Updates repositories to the list of repositories that organization + admins have allowed Dependabot to access when updating dependencies. + description: |- + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Unauthorized users will not see the existence of this endpoint. + tags: + - dependabot + operationId: dependabot/update-repository-access-for-org + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies + parameters: + - "$ref": "#/components/parameters/org" + requestBody: + required: true + content: + application/json: + schema: + type: object + oneOf: + - required: + - repository_ids_to_add + - required: + - repository_ids_to_remove + properties: + repository_ids_to_add: + type: array + items: + type: integer + repository_ids_to_remove: + type: array + items: + type: integer + examples: + '204': + summary: Example with a 'succeeded' status. + responses: + '204': + description: Response + '403': + "$ref": "#/components/responses/forbidden" + '404': + "$ref": "#/components/responses/not_found" + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: dependabot + subcategory: repository-access "/organizations/{org}/dependabot/repository-access/default-level": put: summary: Set the default repository access level for Dependabot diff --git a/descriptions/api.github.com/api.github.com.json b/descriptions/api.github.com/api.github.com.json index 069d080303..ba71abed70 100644 --- a/descriptions/api.github.com/api.github.com.json +++ b/descriptions/api.github.com/api.github.com.json @@ -6341,6 +6341,81 @@ "category": "dependabot", "subcategory": "repository-access" } + }, + "patch": { + "summary": "Updates repositories to the list of repositories that organization admins have allowed Dependabot to access when updating dependencies.", + "description": "> [!NOTE]\n> This operation supports both server-to-server and user-to-server access.\nUnauthorized users will not see the existence of this endpoint.", + "tags": [ + "dependabot" + ], + "operationId": "dependabot/update-repository-access-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies" + }, + "parameters": [ + { + "$ref": "#/components/parameters/org" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "oneOf": [ + { + "required": [ + "repository_ids_to_add" + ] + }, + { + "required": [ + "repository_ids_to_remove" + ] + } + ], + "properties": { + "repository_ids_to_add": { + "type": "array", + "items": { + "type": "integer" + } + }, + "repository_ids_to_remove": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "examples": { + "204": { + "summary": "Example with a 'succeeded' status." + } + } + } + } + }, + "responses": { + "204": { + "description": "Response" + }, + "403": { + "$ref": "#/components/responses/forbidden" + }, + "404": { + "$ref": "#/components/responses/not_found" + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "dependabot", + "subcategory": "repository-access" + } } }, "/organizations/{org}/dependabot/repository-access/default-level": { diff --git a/descriptions/api.github.com/api.github.com.yaml b/descriptions/api.github.com/api.github.com.yaml index 7b892aa05f..d85c2d5770 100644 --- a/descriptions/api.github.com/api.github.com.yaml +++ b/descriptions/api.github.com/api.github.com.yaml @@ -4483,6 +4483,56 @@ paths: enabledForGitHubApps: true category: dependabot subcategory: repository-access + patch: + summary: Updates repositories to the list of repositories that organization + admins have allowed Dependabot to access when updating dependencies. + description: |- + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Unauthorized users will not see the existence of this endpoint. + tags: + - dependabot + operationId: dependabot/update-repository-access-for-org + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies + parameters: + - "$ref": "#/components/parameters/org" + requestBody: + required: true + content: + application/json: + schema: + type: object + oneOf: + - required: + - repository_ids_to_add + - required: + - repository_ids_to_remove + properties: + repository_ids_to_add: + type: array + items: + type: integer + repository_ids_to_remove: + type: array + items: + type: integer + examples: + '204': + summary: Example with a 'succeeded' status. + responses: + '204': + description: Response + '403': + "$ref": "#/components/responses/forbidden" + '404': + "$ref": "#/components/responses/not_found" + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: dependabot + subcategory: repository-access "/organizations/{org}/dependabot/repository-access/default-level": put: summary: Set the default repository access level for Dependabot 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 eb97a657b1..8673583a3c 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 @@ -50750,6 +50750,133 @@ "category": "dependabot", "subcategory": "repository-access" } + }, + "patch": { + "summary": "Updates repositories to the list of repositories that organization admins have allowed Dependabot to access when updating dependencies.", + "description": "> [!NOTE]\n> This operation supports both server-to-server and user-to-server access.\nUnauthorized users will not see the existence of this endpoint.", + "tags": [ + "dependabot" + ], + "operationId": "dependabot/update-repository-access-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies" + }, + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "oneOf": [ + { + "required": [ + "repository_ids_to_add" + ] + }, + { + "required": [ + "repository_ids_to_remove" + ] + } + ], + "properties": { + "repository_ids_to_add": { + "type": "array", + "items": { + "type": "integer" + } + }, + "repository_ids_to_remove": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "examples": { + "204": { + "summary": "Example with a 'succeeded' status." + } + } + } + } + }, + "responses": { + "204": { + "description": "Response" + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } + }, + "404": { + "description": "Resource not found", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "dependabot", + "subcategory": "repository-access" + } } }, "/organizations/{org}/dependabot/repository-access/default-level": { 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 bdc4b8bd7d..fe1ca41cc1 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 @@ -15468,6 +15468,54 @@ paths: enabledForGitHubApps: true category: dependabot subcategory: repository-access + patch: + summary: Updates repositories to the list of repositories that organization + admins have allowed Dependabot to access when updating dependencies. + description: |- + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Unauthorized users will not see the existence of this endpoint. + tags: + - dependabot + operationId: dependabot/update-repository-access-for-org + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies + parameters: + - *94 + requestBody: + required: true + content: + application/json: + schema: + type: object + oneOf: + - required: + - repository_ids_to_add + - required: + - repository_ids_to_remove + properties: + repository_ids_to_add: + type: array + items: + type: integer + repository_ids_to_remove: + type: array + items: + type: integer + examples: + '204': + summary: Example with a 'succeeded' status. + responses: + '204': + description: Response + '403': *29 + '404': *6 + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: dependabot + subcategory: repository-access "/organizations/{org}/dependabot/repository-access/default-level": put: summary: Set the default repository access level for Dependabot 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 eb97a657b1..8673583a3c 100644 --- a/descriptions/api.github.com/dereferenced/api.github.com.deref.json +++ b/descriptions/api.github.com/dereferenced/api.github.com.deref.json @@ -50750,6 +50750,133 @@ "category": "dependabot", "subcategory": "repository-access" } + }, + "patch": { + "summary": "Updates repositories to the list of repositories that organization admins have allowed Dependabot to access when updating dependencies.", + "description": "> [!NOTE]\n> This operation supports both server-to-server and user-to-server access.\nUnauthorized users will not see the existence of this endpoint.", + "tags": [ + "dependabot" + ], + "operationId": "dependabot/update-repository-access-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies" + }, + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "oneOf": [ + { + "required": [ + "repository_ids_to_add" + ] + }, + { + "required": [ + "repository_ids_to_remove" + ] + } + ], + "properties": { + "repository_ids_to_add": { + "type": "array", + "items": { + "type": "integer" + } + }, + "repository_ids_to_remove": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "examples": { + "204": { + "summary": "Example with a 'succeeded' status." + } + } + } + } + }, + "responses": { + "204": { + "description": "Response" + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } + }, + "404": { + "description": "Resource not found", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "dependabot", + "subcategory": "repository-access" + } } }, "/organizations/{org}/dependabot/repository-access/default-level": { 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 bdc4b8bd7d..fe1ca41cc1 100644 --- a/descriptions/api.github.com/dereferenced/api.github.com.deref.yaml +++ b/descriptions/api.github.com/dereferenced/api.github.com.deref.yaml @@ -15468,6 +15468,54 @@ paths: enabledForGitHubApps: true category: dependabot subcategory: repository-access + patch: + summary: Updates repositories to the list of repositories that organization + admins have allowed Dependabot to access when updating dependencies. + description: |- + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Unauthorized users will not see the existence of this endpoint. + tags: + - dependabot + operationId: dependabot/update-repository-access-for-org + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies + parameters: + - *94 + requestBody: + required: true + content: + application/json: + schema: + type: object + oneOf: + - required: + - repository_ids_to_add + - required: + - repository_ids_to_remove + properties: + repository_ids_to_add: + type: array + items: + type: integer + repository_ids_to_remove: + type: array + items: + type: integer + examples: + '204': + summary: Example with a 'succeeded' status. + responses: + '204': + description: Response + '403': *29 + '404': *6 + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: dependabot + subcategory: repository-access "/organizations/{org}/dependabot/repository-access/default-level": put: summary: Set the default repository access level for Dependabot diff --git a/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.json b/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.json index 539e7a2290..bb8e48f938 100644 --- a/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.json +++ b/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.json @@ -47406,7 +47406,7 @@ { "name": "advanced_security_product", "in": "query", - "description": "The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.", + "description": "The security product to get GitHub Advanced Security active committers for.\n\nFor standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.\n", "required": false, "schema": { "type": "string", @@ -77147,6 +77147,133 @@ "category": "dependabot", "subcategory": "repository-access" } + }, + "patch": { + "summary": "Updates repositories to the list of repositories that organization admins have allowed Dependabot to access when updating dependencies.", + "description": "> [!NOTE]\n> This operation supports both server-to-server and user-to-server access.\nUnauthorized users will not see the existence of this endpoint.", + "tags": [ + "dependabot" + ], + "operationId": "dependabot/update-repository-access-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/enterprise-cloud@latest//rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies" + }, + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "oneOf": [ + { + "required": [ + "repository_ids_to_add" + ] + }, + { + "required": [ + "repository_ids_to_remove" + ] + } + ], + "properties": { + "repository_ids_to_add": { + "type": "array", + "items": { + "type": "integer" + } + }, + "repository_ids_to_remove": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "examples": { + "204": { + "summary": "Example with a 'succeeded' status." + } + } + } + } + }, + "responses": { + "204": { + "description": "Response" + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } + }, + "404": { + "description": "Resource not found", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "dependabot", + "subcategory": "repository-access" + } } }, "/organizations/{org}/dependabot/repository-access/default-level": { @@ -173333,7 +173460,7 @@ { "name": "advanced_security_product", "in": "query", - "description": "The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.", + "description": "The security product to get GitHub Advanced Security active committers for.\n\nFor standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.\n", "required": false, "schema": { "type": "string", diff --git a/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.yaml b/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.yaml index a3efde4d14..f3dbc28b41 100644 --- a/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.yaml +++ b/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.yaml @@ -18108,10 +18108,10 @@ paths: - &349 name: advanced_security_product in: query - description: The security product to get GitHub Advanced Security active committers - for. This parameter is required if you have purchased standalone Code Scanning - or Secret Protection products to specify which one you want to get the committer - information for, otherwise it is not required. + description: | + The security product to get GitHub Advanced Security active committers for. + + For standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used. required: false schema: type: string @@ -24540,6 +24540,54 @@ paths: enabledForGitHubApps: true category: dependabot subcategory: repository-access + patch: + summary: Updates repositories to the list of repositories that organization + admins have allowed Dependabot to access when updating dependencies. + description: |- + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Unauthorized users will not see the existence of this endpoint. + tags: + - dependabot + operationId: dependabot/update-repository-access-for-org + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies + parameters: + - *172 + requestBody: + required: true + content: + application/json: + schema: + type: object + oneOf: + - required: + - repository_ids_to_add + - required: + - repository_ids_to_remove + properties: + repository_ids_to_add: + type: array + items: + type: integer + repository_ids_to_remove: + type: array + items: + type: integer + examples: + '204': + summary: Example with a 'succeeded' status. + responses: + '204': + description: Response + '403': *29 + '404': *6 + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: dependabot + subcategory: repository-access "/organizations/{org}/dependabot/repository-access/default-level": put: summary: Set the default repository access level for Dependabot diff --git a/descriptions/ghec/dereferenced/ghec.deref.json b/descriptions/ghec/dereferenced/ghec.deref.json index 539e7a2290..bb8e48f938 100644 --- a/descriptions/ghec/dereferenced/ghec.deref.json +++ b/descriptions/ghec/dereferenced/ghec.deref.json @@ -47406,7 +47406,7 @@ { "name": "advanced_security_product", "in": "query", - "description": "The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.", + "description": "The security product to get GitHub Advanced Security active committers for.\n\nFor standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.\n", "required": false, "schema": { "type": "string", @@ -77147,6 +77147,133 @@ "category": "dependabot", "subcategory": "repository-access" } + }, + "patch": { + "summary": "Updates repositories to the list of repositories that organization admins have allowed Dependabot to access when updating dependencies.", + "description": "> [!NOTE]\n> This operation supports both server-to-server and user-to-server access.\nUnauthorized users will not see the existence of this endpoint.", + "tags": [ + "dependabot" + ], + "operationId": "dependabot/update-repository-access-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/enterprise-cloud@latest//rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies" + }, + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "oneOf": [ + { + "required": [ + "repository_ids_to_add" + ] + }, + { + "required": [ + "repository_ids_to_remove" + ] + } + ], + "properties": { + "repository_ids_to_add": { + "type": "array", + "items": { + "type": "integer" + } + }, + "repository_ids_to_remove": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "examples": { + "204": { + "summary": "Example with a 'succeeded' status." + } + } + } + } + }, + "responses": { + "204": { + "description": "Response" + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } + }, + "404": { + "description": "Resource not found", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "dependabot", + "subcategory": "repository-access" + } } }, "/organizations/{org}/dependabot/repository-access/default-level": { @@ -173333,7 +173460,7 @@ { "name": "advanced_security_product", "in": "query", - "description": "The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.", + "description": "The security product to get GitHub Advanced Security active committers for.\n\nFor standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.\n", "required": false, "schema": { "type": "string", diff --git a/descriptions/ghec/dereferenced/ghec.deref.yaml b/descriptions/ghec/dereferenced/ghec.deref.yaml index a3efde4d14..f3dbc28b41 100644 --- a/descriptions/ghec/dereferenced/ghec.deref.yaml +++ b/descriptions/ghec/dereferenced/ghec.deref.yaml @@ -18108,10 +18108,10 @@ paths: - &349 name: advanced_security_product in: query - description: The security product to get GitHub Advanced Security active committers - for. This parameter is required if you have purchased standalone Code Scanning - or Secret Protection products to specify which one you want to get the committer - information for, otherwise it is not required. + description: | + The security product to get GitHub Advanced Security active committers for. + + For standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used. required: false schema: type: string @@ -24540,6 +24540,54 @@ paths: enabledForGitHubApps: true category: dependabot subcategory: repository-access + patch: + summary: Updates repositories to the list of repositories that organization + admins have allowed Dependabot to access when updating dependencies. + description: |- + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Unauthorized users will not see the existence of this endpoint. + tags: + - dependabot + operationId: dependabot/update-repository-access-for-org + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies + parameters: + - *172 + requestBody: + required: true + content: + application/json: + schema: + type: object + oneOf: + - required: + - repository_ids_to_add + - required: + - repository_ids_to_remove + properties: + repository_ids_to_add: + type: array + items: + type: integer + repository_ids_to_remove: + type: array + items: + type: integer + examples: + '204': + summary: Example with a 'succeeded' status. + responses: + '204': + description: Response + '403': *29 + '404': *6 + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: dependabot + subcategory: repository-access "/organizations/{org}/dependabot/repository-access/default-level": put: summary: Set the default repository access level for Dependabot diff --git a/descriptions/ghec/ghec.2022-11-28.json b/descriptions/ghec/ghec.2022-11-28.json index ef52f7cffb..7429af9cf7 100644 --- a/descriptions/ghec/ghec.2022-11-28.json +++ b/descriptions/ghec/ghec.2022-11-28.json @@ -12111,6 +12111,81 @@ "category": "dependabot", "subcategory": "repository-access" } + }, + "patch": { + "summary": "Updates repositories to the list of repositories that organization admins have allowed Dependabot to access when updating dependencies.", + "description": "> [!NOTE]\n> This operation supports both server-to-server and user-to-server access.\nUnauthorized users will not see the existence of this endpoint.", + "tags": [ + "dependabot" + ], + "operationId": "dependabot/update-repository-access-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/enterprise-cloud@latest//rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies" + }, + "parameters": [ + { + "$ref": "#/components/parameters/org" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "oneOf": [ + { + "required": [ + "repository_ids_to_add" + ] + }, + { + "required": [ + "repository_ids_to_remove" + ] + } + ], + "properties": { + "repository_ids_to_add": { + "type": "array", + "items": { + "type": "integer" + } + }, + "repository_ids_to_remove": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "examples": { + "204": { + "summary": "Example with a 'succeeded' status." + } + } + } + } + }, + "responses": { + "204": { + "description": "Response" + }, + "403": { + "$ref": "#/components/responses/forbidden" + }, + "404": { + "$ref": "#/components/responses/not_found" + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "dependabot", + "subcategory": "repository-access" + } } }, "/organizations/{org}/dependabot/repository-access/default-level": { @@ -317492,7 +317567,7 @@ "advanced-security-product": { "name": "advanced_security_product", "in": "query", - "description": "The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.", + "description": "The security product to get GitHub Advanced Security active committers for.\n\nFor standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.\n", "required": false, "schema": { "type": "string", diff --git a/descriptions/ghec/ghec.2022-11-28.yaml b/descriptions/ghec/ghec.2022-11-28.yaml index ed829f68e6..bfc6f64a56 100644 --- a/descriptions/ghec/ghec.2022-11-28.yaml +++ b/descriptions/ghec/ghec.2022-11-28.yaml @@ -8594,6 +8594,56 @@ paths: enabledForGitHubApps: true category: dependabot subcategory: repository-access + patch: + summary: Updates repositories to the list of repositories that organization + admins have allowed Dependabot to access when updating dependencies. + description: |- + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Unauthorized users will not see the existence of this endpoint. + tags: + - dependabot + operationId: dependabot/update-repository-access-for-org + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies + parameters: + - "$ref": "#/components/parameters/org" + requestBody: + required: true + content: + application/json: + schema: + type: object + oneOf: + - required: + - repository_ids_to_add + - required: + - repository_ids_to_remove + properties: + repository_ids_to_add: + type: array + items: + type: integer + repository_ids_to_remove: + type: array + items: + type: integer + examples: + '204': + summary: Example with a 'succeeded' status. + responses: + '204': + description: Response + '403': + "$ref": "#/components/responses/forbidden" + '404': + "$ref": "#/components/responses/not_found" + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: dependabot + subcategory: repository-access "/organizations/{org}/dependabot/repository-access/default-level": put: summary: Set the default repository access level for Dependabot @@ -240647,10 +240697,10 @@ components: advanced-security-product: name: advanced_security_product in: query - description: The security product to get GitHub Advanced Security active committers - for. This parameter is required if you have purchased standalone Code Scanning - or Secret Protection products to specify which one you want to get the committer - information for, otherwise it is not required. + description: | + The security product to get GitHub Advanced Security active committers for. + + For standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used. required: false schema: type: string diff --git a/descriptions/ghec/ghec.json b/descriptions/ghec/ghec.json index ef52f7cffb..7429af9cf7 100644 --- a/descriptions/ghec/ghec.json +++ b/descriptions/ghec/ghec.json @@ -12111,6 +12111,81 @@ "category": "dependabot", "subcategory": "repository-access" } + }, + "patch": { + "summary": "Updates repositories to the list of repositories that organization admins have allowed Dependabot to access when updating dependencies.", + "description": "> [!NOTE]\n> This operation supports both server-to-server and user-to-server access.\nUnauthorized users will not see the existence of this endpoint.", + "tags": [ + "dependabot" + ], + "operationId": "dependabot/update-repository-access-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/enterprise-cloud@latest//rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies" + }, + "parameters": [ + { + "$ref": "#/components/parameters/org" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "oneOf": [ + { + "required": [ + "repository_ids_to_add" + ] + }, + { + "required": [ + "repository_ids_to_remove" + ] + } + ], + "properties": { + "repository_ids_to_add": { + "type": "array", + "items": { + "type": "integer" + } + }, + "repository_ids_to_remove": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "examples": { + "204": { + "summary": "Example with a 'succeeded' status." + } + } + } + } + }, + "responses": { + "204": { + "description": "Response" + }, + "403": { + "$ref": "#/components/responses/forbidden" + }, + "404": { + "$ref": "#/components/responses/not_found" + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "dependabot", + "subcategory": "repository-access" + } } }, "/organizations/{org}/dependabot/repository-access/default-level": { @@ -317492,7 +317567,7 @@ "advanced-security-product": { "name": "advanced_security_product", "in": "query", - "description": "The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.", + "description": "The security product to get GitHub Advanced Security active committers for.\n\nFor standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.\n", "required": false, "schema": { "type": "string", diff --git a/descriptions/ghec/ghec.yaml b/descriptions/ghec/ghec.yaml index ed829f68e6..bfc6f64a56 100644 --- a/descriptions/ghec/ghec.yaml +++ b/descriptions/ghec/ghec.yaml @@ -8594,6 +8594,56 @@ paths: enabledForGitHubApps: true category: dependabot subcategory: repository-access + patch: + summary: Updates repositories to the list of repositories that organization + admins have allowed Dependabot to access when updating dependencies. + description: |- + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Unauthorized users will not see the existence of this endpoint. + tags: + - dependabot + operationId: dependabot/update-repository-access-for-org + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies + parameters: + - "$ref": "#/components/parameters/org" + requestBody: + required: true + content: + application/json: + schema: + type: object + oneOf: + - required: + - repository_ids_to_add + - required: + - repository_ids_to_remove + properties: + repository_ids_to_add: + type: array + items: + type: integer + repository_ids_to_remove: + type: array + items: + type: integer + examples: + '204': + summary: Example with a 'succeeded' status. + responses: + '204': + description: Response + '403': + "$ref": "#/components/responses/forbidden" + '404': + "$ref": "#/components/responses/not_found" + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: dependabot + subcategory: repository-access "/organizations/{org}/dependabot/repository-access/default-level": put: summary: Set the default repository access level for Dependabot @@ -240647,10 +240697,10 @@ components: advanced-security-product: name: advanced_security_product in: query - description: The security product to get GitHub Advanced Security active committers - for. This parameter is required if you have purchased standalone Code Scanning - or Secret Protection products to specify which one you want to get the committer - information for, otherwise it is not required. + description: | + The security product to get GitHub Advanced Security active committers for. + + For standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used. required: false schema: type: string diff --git a/descriptions/ghes-3.17/dereferenced/ghes-3.17.2022-11-28.deref.json b/descriptions/ghes-3.17/dereferenced/ghes-3.17.2022-11-28.deref.json index 64788cebe6..ae135e5cde 100644 --- a/descriptions/ghes-3.17/dereferenced/ghes-3.17.2022-11-28.deref.json +++ b/descriptions/ghes-3.17/dereferenced/ghes-3.17.2022-11-28.deref.json @@ -47053,7 +47053,7 @@ { "name": "advanced_security_product", "in": "query", - "description": "The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.", + "description": "The security product to get GitHub Advanced Security active committers for.\n\nFor standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.\n", "required": false, "schema": { "type": "string", @@ -145430,7 +145430,7 @@ { "name": "advanced_security_product", "in": "query", - "description": "The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.", + "description": "The security product to get GitHub Advanced Security active committers for.\n\nFor standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.\n", "required": false, "schema": { "type": "string", diff --git a/descriptions/ghes-3.17/dereferenced/ghes-3.17.2022-11-28.deref.yaml b/descriptions/ghes-3.17/dereferenced/ghes-3.17.2022-11-28.deref.yaml index 83af610e8f..bf1b4ca111 100644 --- a/descriptions/ghes-3.17/dereferenced/ghes-3.17.2022-11-28.deref.yaml +++ b/descriptions/ghes-3.17/dereferenced/ghes-3.17.2022-11-28.deref.yaml @@ -16178,10 +16178,10 @@ paths: - &296 name: advanced_security_product in: query - description: The security product to get GitHub Advanced Security active committers - for. This parameter is required if you have purchased standalone Code Scanning - or Secret Protection products to specify which one you want to get the committer - information for, otherwise it is not required. + description: | + The security product to get GitHub Advanced Security active committers for. + + For standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used. required: false schema: type: string diff --git a/descriptions/ghes-3.17/dereferenced/ghes-3.17.deref.json b/descriptions/ghes-3.17/dereferenced/ghes-3.17.deref.json index 64788cebe6..ae135e5cde 100644 --- a/descriptions/ghes-3.17/dereferenced/ghes-3.17.deref.json +++ b/descriptions/ghes-3.17/dereferenced/ghes-3.17.deref.json @@ -47053,7 +47053,7 @@ { "name": "advanced_security_product", "in": "query", - "description": "The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.", + "description": "The security product to get GitHub Advanced Security active committers for.\n\nFor standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.\n", "required": false, "schema": { "type": "string", @@ -145430,7 +145430,7 @@ { "name": "advanced_security_product", "in": "query", - "description": "The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.", + "description": "The security product to get GitHub Advanced Security active committers for.\n\nFor standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.\n", "required": false, "schema": { "type": "string", diff --git a/descriptions/ghes-3.17/dereferenced/ghes-3.17.deref.yaml b/descriptions/ghes-3.17/dereferenced/ghes-3.17.deref.yaml index 83af610e8f..bf1b4ca111 100644 --- a/descriptions/ghes-3.17/dereferenced/ghes-3.17.deref.yaml +++ b/descriptions/ghes-3.17/dereferenced/ghes-3.17.deref.yaml @@ -16178,10 +16178,10 @@ paths: - &296 name: advanced_security_product in: query - description: The security product to get GitHub Advanced Security active committers - for. This parameter is required if you have purchased standalone Code Scanning - or Secret Protection products to specify which one you want to get the committer - information for, otherwise it is not required. + description: | + The security product to get GitHub Advanced Security active committers for. + + For standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used. required: false schema: type: string diff --git a/descriptions/ghes-3.17/ghes-3.17.2022-11-28.json b/descriptions/ghes-3.17/ghes-3.17.2022-11-28.json index 57b81ad1cc..bddbcb2480 100644 --- a/descriptions/ghes-3.17/ghes-3.17.2022-11-28.json +++ b/descriptions/ghes-3.17/ghes-3.17.2022-11-28.json @@ -289748,7 +289748,7 @@ "advanced-security-product": { "name": "advanced_security_product", "in": "query", - "description": "The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.", + "description": "The security product to get GitHub Advanced Security active committers for.\n\nFor standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.\n", "required": false, "schema": { "type": "string", diff --git a/descriptions/ghes-3.17/ghes-3.17.2022-11-28.yaml b/descriptions/ghes-3.17/ghes-3.17.2022-11-28.yaml index b6b66531a8..d6c3ab0f2a 100644 --- a/descriptions/ghes-3.17/ghes-3.17.2022-11-28.yaml +++ b/descriptions/ghes-3.17/ghes-3.17.2022-11-28.yaml @@ -218992,10 +218992,10 @@ components: advanced-security-product: name: advanced_security_product in: query - description: The security product to get GitHub Advanced Security active committers - for. This parameter is required if you have purchased standalone Code Scanning - or Secret Protection products to specify which one you want to get the committer - information for, otherwise it is not required. + description: | + The security product to get GitHub Advanced Security active committers for. + + For standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used. required: false schema: type: string diff --git a/descriptions/ghes-3.17/ghes-3.17.json b/descriptions/ghes-3.17/ghes-3.17.json index 57b81ad1cc..bddbcb2480 100644 --- a/descriptions/ghes-3.17/ghes-3.17.json +++ b/descriptions/ghes-3.17/ghes-3.17.json @@ -289748,7 +289748,7 @@ "advanced-security-product": { "name": "advanced_security_product", "in": "query", - "description": "The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.", + "description": "The security product to get GitHub Advanced Security active committers for.\n\nFor standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.\n", "required": false, "schema": { "type": "string", diff --git a/descriptions/ghes-3.17/ghes-3.17.yaml b/descriptions/ghes-3.17/ghes-3.17.yaml index b6b66531a8..d6c3ab0f2a 100644 --- a/descriptions/ghes-3.17/ghes-3.17.yaml +++ b/descriptions/ghes-3.17/ghes-3.17.yaml @@ -218992,10 +218992,10 @@ components: advanced-security-product: name: advanced_security_product in: query - description: The security product to get GitHub Advanced Security active committers - for. This parameter is required if you have purchased standalone Code Scanning - or Secret Protection products to specify which one you want to get the committer - information for, otherwise it is not required. + description: | + The security product to get GitHub Advanced Security active committers for. + + For standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used. required: false schema: type: string